summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundler
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2022-09-02 07:33:54 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2022-09-02 07:33:54 +0200
commit0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2 (patch)
tree1633f01d3793ba926b1bb88c27b554bbbf85806e /pkgs/development/ruby-modules/bundler
parent0817121bdca5c3d7fda1b5b05981d012e67a1411 (diff)
downloadnixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar.gz
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar.bz2
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar.lz
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar.xz
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.tar.zst
nixpkgs-0c61634ac9c9b77c5f00b3b529d048f5d50dc7c2.zip
Re-Revert "Merge #188995: bundler: 2.3.20 -> 2.3.21"
Moved from master to staging.
This reverts commit 21de2b973f9fee595a7a1ac4693efff791245c34.
Diffstat (limited to 'pkgs/development/ruby-modules/bundler')
-rw-r--r--pkgs/development/ruby-modules/bundler/default.nix23
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/development/ruby-modules/bundler/default.nix b/pkgs/development/ruby-modules/bundler/default.nix
index 04f97c68c6a..8daf8040020 100644
--- a/pkgs/development/ruby-modules/bundler/default.nix
+++ b/pkgs/development/ruby-modules/bundler/default.nix
@@ -1,14 +1,31 @@
-{ buildRubyGem, ruby }:
+{ lib, buildRubyGem, ruby, writeScript }:
 
 buildRubyGem rec {
   inherit ruby;
   name = "${gemName}-${version}";
   gemName = "bundler";
-  version = "2.3.20";
-  source.sha256 = "sha256-gJJ3vHzrJo6XpHS1iwLb77jd9ZB39GGLcOJQSrgaBHw=";
+  version = "2.3.21";
+  source.sha256 = "sha256-+u3H/8Fno8U7ZMRj2me1DVvkOAR2HeWmjdo0TCG/0d4=";
   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
   '';
+
+  meta = with lib; {
+    description = "Manage your Ruby application's gem dependencies";
+    homepage = "https://bundler.io";
+    license = licenses.mit;
+    maintainers = with maintainers; [anthonyroussel];
+  };
 }