From c52d71bc355a0c239f8466f531d2c399bfbde31d Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 27 Jan 2025 22:49:23 +0100 Subject: [PATCH] bundler: 2.5.22 -> 2.6.2 --- pkgs/by-name/bu/bundler/package.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/bu/bundler/package.nix b/pkgs/by-name/bu/bundler/package.nix index d6fdf014474d9f..b916a85837a468 100644 --- a/pkgs/by-name/bu/bundler/package.nix +++ b/pkgs/by-name/bu/bundler/package.nix @@ -5,20 +5,28 @@ writeScript, testers, bundler, + versionCheckHook, }: buildRubyGem rec { inherit ruby; name = "${gemName}-${version}"; gemName = "bundler"; - version = "2.5.22"; - source.sha256 = "sha256-dj8w1ZjuWHQu6ikoWHVDXqciIY1N8UneNbzjfALOlo4="; + version = "2.6.2"; + source.sha256 = "sha256-S4l1bhsFOQ/2eEkRGaEPCXOiBFzJ/LInsCqTlrKPfXQ="; dontPatchShebangs = true; postFixup = '' - sed -i -e "s/activate_bin_path/bin_path/g" $out/bin/bundle + substituteInPlace $out/bin/bundle --replace-fail "activate_bin_path" "bin_path" ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/bundler"; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + passthru = { updateScript = writeScript "gem-update-script" '' #!/usr/bin/env nix-shell @@ -36,12 +44,12 @@ buildRubyGem rec { }; }; - meta = with lib; { + meta = { description = "Manage your Ruby application's gem dependencies"; homepage = "https://bundler.io"; changelog = "https://github.com/rubygems/rubygems/blob/bundler-v${version}/bundler/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ anthonyroussel ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ anthonyroussel ]; mainProgram = "bundler"; }; }