rakudo: remove references to stdenv.cc.cc
Rakudo depends on gcc noticeably increasing closure size, this commit removes the references. Fixes #101097
This commit is contained in:
parent
7c2d15627a
commit
24eceb46b7
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp }:
|
||||
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rakudo";
|
||||
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "11ixlqmvbb37abksdysg5r4lkbwzr486lkc0ssl3wca4iiy3mhgf";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ removeReferencesTo ];
|
||||
|
||||
buildInputs = [ icu zlib gmp perl ];
|
||||
configureScript = "perl ./Configure.pl";
|
||||
configureFlags = [
|
||||
|
@ -16,6 +18,11 @@ stdenv.mkDerivation rec {
|
|||
"--with-nqp=${nqp}/bin/nqp"
|
||||
];
|
||||
|
||||
disallowedReferences = [ stdenv.cc.cc ];
|
||||
postFixup = ''
|
||||
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar.so)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Raku implementation on top of Moar virtual machine";
|
||||
homepage = "https://rakudo.org";
|
||||
|
|
Loading…
Reference in a new issue