12 name = "${gemName}-${version}";
15 source.sha256 = "sha256-dj8w1ZjuWHQu6ikoWHVDXqciIY1N8UneNbzjfALOlo4=";
16 dontPatchShebangs = true;
19 sed -i -e "s/activate_bin_path/bin_path/g" $out/bin/bundle
23 updateScript = writeScript "gem-update-script" ''
24 #!/usr/bin/env nix-shell
25 #!nix-shell -i bash -p curl common-updater-scripts jq
29 latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version)
30 update-source-version ${gemName} "$latest_version"
32 tests.version = testers.testVersion {
34 command = "bundler -v";
40 description = "Manage your Ruby application's gem dependencies";
41 homepage = "https://bundler.io";
42 changelog = "https://github.com/rubygems/rubygems/blob/bundler-v${version}/bundler/CHANGELOG.md";
43 license = licenses.mit;
44 maintainers = with maintainers; [ anthonyroussel ];
45 mainProgram = "bundler";