1 { lib, buildRubyGem, ruby, writeScript, testers, bundler }:
5 name = "${gemName}-${version}";
8 source.sha256 = "sha256-dj8w1ZjuWHQu6ikoWHVDXqciIY1N8UneNbzjfALOlo4=";
9 dontPatchShebangs = true;
12 sed -i -e "s/activate_bin_path/bin_path/g" $out/bin/bundle
16 updateScript = writeScript "gem-update-script" ''
17 #!/usr/bin/env nix-shell
18 #!nix-shell -i bash -p curl common-updater-scripts jq
22 latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version)
23 update-source-version ${gemName} "$latest_version"
25 tests.version = testers.testVersion {
27 command = "bundler -v";
33 description = "Manage your Ruby application's gem dependencies";
34 homepage = "https://bundler.io";
35 changelog = "https://github.com/rubygems/rubygems/blob/bundler-v${version}/bundler/CHANGELOG.md";
36 license = licenses.mit;
37 maintainers = with maintainers; [ anthonyroussel ];
38 mainProgram = "bundler";