Merge pull request #127405 from stigtsp/fix/rakudo-closure-bloat

This commit is contained in:
Sandro 2021-06-21 11:52:44 +02:00 committed by GitHub
commit d7c45ca03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp }: { stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rakudo"; pname = "rakudo";
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "11ixlqmvbb37abksdysg5r4lkbwzr486lkc0ssl3wca4iiy3mhgf"; sha256 = "11ixlqmvbb37abksdysg5r4lkbwzr486lkc0ssl3wca4iiy3mhgf";
}; };
nativeBuildInputs = [ removeReferencesTo ];
buildInputs = [ icu zlib gmp perl ]; buildInputs = [ icu zlib gmp perl ];
configureScript = "perl ./Configure.pl"; configureScript = "perl ./Configure.pl";
configureFlags = [ configureFlags = [
@ -16,6 +18,11 @@ stdenv.mkDerivation rec {
"--with-nqp=${nqp}/bin/nqp" "--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; { meta = with lib; {
description = "Raku implementation on top of Moar virtual machine"; description = "Raku implementation on top of Moar virtual machine";
homepage = "https://rakudo.org"; homepage = "https://rakudo.org";