git.iko.soy/typeable/nixpkgs
on master help sign in
rakudo: remove references to stdenv.cc.cc

Rakudo depends on gcc noticeably increasing closure size, this commit removes the references. Fixes #101097

commit24eceb46b78f1d1e0b8807dceb26e1589c346ecc authorStig Palmquist <stig@stig.io> dateFri 18 Jun 2021, 22:02 (5 years ago) parent7c2d156
1 file changed+8−1
pkgs/development/interpreters/rakudo/default.nix+8−1
pkgs/development/interpreters/rakudo/default.nix+8−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp }:
1+{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
22
33stdenv.mkDerivation rec {
44 pname = "rakudo";
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
99 sha256 = "11ixlqmvbb37abksdysg5r4lkbwzr486lkc0ssl3wca4iiy3mhgf";
1010 };
1111
12+ nativeBuildInputs = [ removeReferencesTo ];
13+
1214 buildInputs = [ icu zlib gmp perl ];
1315 configureScript = "perl ./Configure.pl";
1416 configureFlags = [
@@ -16,6 +18,11 @@ stdenv.mkDerivation rec {
1618 "--with-nqp=${nqp}/bin/nqp"
1719 ];
1820
21+ disallowedReferences = [ stdenv.cc.cc ];
22+ postFixup = ''
23+ remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar.so)"
24+ '';
25+
1926 meta = with lib; {
2027 description = "Raku implementation on top of Moar virtual machine";
2128 homepage = "https://rakudo.org";