summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/ruby/rubygems
diff options
context:
space:
mode:
authorArthur Gautier <baloo@superbaloo.net>2021-05-20 00:00:40 +0000
committerArthur Gautier <baloo@superbaloo.net>2021-05-20 20:51:41 +0000
commit7b4845412184db1e4c608ce7127a66d5fd9c1a4f (patch)
tree38b34c3ef3cd9dd5cf18f0c65ba1436626f86cfd /pkgs/development/interpreters/ruby/rubygems
parent8dcec3422ec0cb09a82c16c0777094067bbaf3fd (diff)
rubygems: ensure temporary directories are cleaned up
see #123718 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Diffstat (limited to 'pkgs/development/interpreters/ruby/rubygems')
-rw-r--r--pkgs/development/interpreters/ruby/rubygems/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/ruby/rubygems/default.nix b/pkgs/development/interpreters/ruby/rubygems/default.nix
index db508caae310..cf2ca1b766ea 100644
--- a/pkgs/development/interpreters/ruby/rubygems/default.nix
+++ b/pkgs/development/interpreters/ruby/rubygems/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchurl }:
+{ stdenv, lib, fetchurl, fetchpatch }:
stdenv.mkDerivation rec {
name = "rubygems";
@@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
./0001-add-post-extract-hook.patch
./0002-binaries-with-env-shebang.patch
./0003-gem-install-default-to-user.patch
+ # Ensure tmp directory are not left behind
+ # https://github.com/rubygems/rubygems/pull/4610
+ (fetchpatch {
+ url = "https://github.com/rubygems/rubygems/commit/2c2ffde6e4a9f7f571d38af687034fb8507a833d.patch";
+ sha256 = "sha256-bs2dXALKiJvMgk7lKjMx0NzGqlEqDYBBO35UrzNifms=";
+ })
];
installPhase = ''