diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-01-06 23:02:58 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-01-09 15:55:00 +0000 |
commit | fbe4716bd516587e5f294873e66c33a68225255a (patch) | |
tree | f758952c8e23cad72420bfcbb446f4ce03663575 /pkgs | |
parent | 163618988f89a64ece3d7d17ef8cc50fa55a357d (diff) | |
download | nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar.gz nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar.bz2 nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar.lz nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar.xz nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.tar.zst nixpkgs-fbe4716bd516587e5f294873e66c33a68225255a.zip |
defaultGemConfig: reduce mathematical closure size
ext/ isn't needed once the extensions have been built, contains references to a bunch of huge dependencies, and contains megabytes of tests.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ruby-modules/gem-config/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix index c1eb82c5fa8..4d7ddf549c3 100644 --- a/pkgs/development/ruby-modules/gem-config/default.nix +++ b/pkgs/development/ruby-modules/gem-config/default.nix @@ -315,6 +315,14 @@ in # The ruby build script takes care of this dontUseCmakeConfigure = true; + postInstall = '' + # Reduce output size by a lot, and remove some unnecessary references. + # The ext directory should only be required at build time, so + # can be deleted now. + rm -r $out/${ruby.gemPath}/gems/mathematical-${attrs.version}/ext \ + $out/${ruby.gemPath}/extensions/*/*/mathematical-${attrs.version}/gem_make.out + ''; + # For some reason 'mathematical.so' is missing cairo and glib in its RPATH, add them explicitly here postFixup = lib.optionalString stdenv.isLinux '' soPath="$out/${ruby.gemPath}/gems/mathematical-${attrs.version}/lib/mathematical/mathematical.so" |