792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
33 lines
1,009 B
Nix
33 lines
1,009 B
Nix
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rakudo";
|
|
version = "2022.02";
|
|
|
|
src = fetchurl {
|
|
url = "https://rakudo.org/dl/rakudo/rakudo-${version}.tar.gz";
|
|
sha256 = "sha256-am6dvMbZoWEKNMbsZ+LT9pTXsz6eCg8iRUMIn6f3EzI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
buildInputs = [ icu zlib gmp perl ];
|
|
configureScript = "perl ./Configure.pl";
|
|
configureFlags = [
|
|
"--backends=moar"
|
|
"--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${stdenv.hostPlatform.extensions.sharedLibrary})"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Raku implementation on top of Moar virtual machine";
|
|
homepage = "https://rakudo.org";
|
|
license = licenses.artistic2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
|
};
|
|
}
|