Skip to content

Commit

Permalink
update rubygems version (#35224)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2682ba6)
  • Loading branch information
manveru authored and zimbatm committed Feb 20, 2018
1 parent 7e0345b commit d09e425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion pkgs/development/interpreters/ruby/default.nix
Expand Up @@ -122,6 +122,12 @@ let
"--with-setjmp-type=setjmp"
];

preInstall = ''
# Ruby installs gems here itself now.
mkdir -pv "$out/${passthru.gemPath}"
export GEM_HOME="$out/${passthru.gemPath}"
'';

installFlags = stdenv.lib.optionalString docSupport "install-doc";
# Bundler tries to create this directory
postInstall = ''
Expand All @@ -134,7 +140,6 @@ let
sed -i '/NROFF/d' $out/lib/ruby/*/*/rbconfig.rb
# Bundler tries to create this directory
mkdir -pv $out/${passthru.gemPath}
mkdir -p $out/nix-support
cat > $out/nix-support/setup-hook <<EOF
addGemPath() {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/ruby/rubygems-src.nix
@@ -1,6 +1,6 @@
{ fetchurl
, version ? "2.6.13"
, sha256 ? "1j98ww8cz9y4wwshg7p4i4acrmls3ywkyj1nlkh4k3bywwm50hfh"
, version ? "2.7.6"
, sha256 ? "1sqy6z1kngq91nxmv1hw4xhw1ycwx9s76hfbpcdlgkm9haji9xv7"
}:
fetchurl {
url = "http://production.cf.rubygems.org/rubygems/rubygems-${version}.tgz";
Expand Down

0 comments on commit d09e425

Please sign in to comment.