Merge pull request #127405 from stigtsp/fix/rakudo-closure-bloat
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user