bundler: 2.4.3 -> 2.4.4

This commit is contained in:
Anthony Roussel 2023-01-20 21:43:14 +01:00
parent 0a454a3068
commit e1729f54e3
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -1,32 +1,40 @@
{ lib, buildRubyGem, ruby, writeScript }:
{ lib, buildRubyGem, ruby, writeScript, testers, bundler }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "bundler";
version = "2.4.3";
source.sha256 = "sha256-AfX4PydFNdghhYk3cApKLxtTw8L8sLEvU3Y49nKHxwA=";
version = "2.4.4";
source.sha256 = "sha256-gwAxWVkd9nptMRtaZc++8PmJZdIDVr66wUv1xi1NPJ0=";
dontPatchShebangs = true;
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
latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version)
update-source-version ${gemName} "$latest_version"
'';
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
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;
};
};
meta = with lib; {
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];
maintainers = with maintainers; [ anthonyroussel ];
mainProgram = "bundler";
};
}