@@ -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";