diff options
author | Thomas Bereknyei <tomberek@gmail.com> | 2021-04-05 00:21:11 -0400 |
---|---|---|
committer | tomberek <tomberek@users.noreply.github.com> | 2021-04-05 23:14:12 -0400 |
commit | a10183d3ecdb391a867c8b8da21ca07ae3d6e5cf (patch) | |
tree | 2b429c662418f8a10606a5c5a1726ea46c47390b /pkgs | |
parent | 87c1a24c477a3665d40831d2c537c7e6d3f54cad (diff) |
ruby: reproducible
Generated Makefile's were nested deeper than the existing rm would be able to remove.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ruby-modules/gem/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/ruby-modules/gem/default.nix b/pkgs/development/ruby-modules/gem/default.nix index 20667988548cd..c8dba5142082f 100644 --- a/pkgs/development/ruby-modules/gem/default.nix +++ b/pkgs/development/ruby-modules/gem/default.nix @@ -217,8 +217,8 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // { # looks like useless files which break build repeatability and consume space pushd $out/${ruby.gemPath} - rm -fv doc/*/*/created.rid || true - rm -fv {gems/*/ext/*,extensions/*/*/*}/{Makefile,mkmf.log,gem_make.out} || true + find doc/ -iname created.rid -delete -print + find gems/*/ext/ extensions/ \( -iname Makefile -o -iname mkmf.log -o -iname gem_make.out \) -delete -print ${if keepGemCache then "" else "rm -fvr cache"} popd |