bundler: 2.5.22 -> 2.6.2

This commit is contained in:
liberodark
2025-03-12 16:04:52 +01:00
committed by Sandro Jäckel
parent 1e73a639a2
commit 77e4ac8216
+14 -6
View File
@@ -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";
};
}