From f61cbb5d2725e2f4074357a3d003f711028740ae 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 | 34 +++++++++++------------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/bu/bundler/package.nix b/pkgs/by-name/bu/bundler/package.nix index d6fdf014474d9..1f7ca62deb505 100644 --- a/pkgs/by-name/bu/bundler/package.nix +++ b/pkgs/by-name/bu/bundler/package.nix @@ -2,46 +2,38 @@ lib, buildRubyGem, ruby, - writeScript, - testers, bundler, + versionCheckHook, + nix-update-script, }: 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 ''; - passthru = { - updateScript = writeScript "gem-update-script" '' - #!/usr/bin/env nix-shell - #!nix-shell -i bash -p curl common-updater-scripts jq - - set -eu -o pipefail + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; - latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version) - update-source-version ${gemName} "$latest_version" - ''; - tests.version = testers.testVersion { - package = bundler; - command = "bundler -v"; - version = version; - }; + passthru = { + updateScript = nix-update-script { }; }; - 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"; }; }