mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
Merge pull request #127405 from stigtsp/fix/rakudo-closure-bloat
This commit is contained in:
commit
d7c45ca03c
1 changed files with 8 additions and 1 deletions
|
@ -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