2021-06-18 22:02:37 +02:00
|
|
|
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
2014-06-11 01:12:33 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-29 04:10:33 +01:00
|
|
|
pname = "rakudo";
|
2022-02-14 18:43:43 +01:00
|
|
|
version = "2022.02";
|
2014-06-11 01:12:33 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-24 00:40:32 +01:00
|
|
|
url = "https://rakudo.org/dl/rakudo/rakudo-${version}.tar.gz";
|
2022-02-14 18:43:43 +01:00
|
|
|
sha256 = "sha256-am6dvMbZoWEKNMbsZ+LT9pTXsz6eCg8iRUMIn6f3EzI=";
|
2014-06-11 01:12:33 +02:00
|
|
|
};
|
|
|
|
|
2021-06-18 22:02:37 +02:00
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
|
2019-12-29 04:10:33 +01:00
|
|
|
buildInputs = [ icu zlib gmp perl ];
|
2014-06-11 01:12:33 +02:00
|
|
|
configureScript = "perl ./Configure.pl";
|
2019-12-29 04:10:33 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-nqp=${nqp}/bin/nqp"
|
|
|
|
];
|
|
|
|
|
2021-06-18 22:02:37 +02:00
|
|
|
disallowedReferences = [ stdenv.cc.cc ];
|
|
|
|
postFixup = ''
|
2021-10-31 23:11:51 +01:00
|
|
|
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar${stdenv.hostPlatform.extensions.sharedLibrary})"
|
2021-06-18 22:02:37 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2019-12-29 04:10:33 +01:00
|
|
|
description = "Raku implementation on top of Moar virtual machine";
|
2021-12-24 00:40:32 +01:00
|
|
|
homepage = "https://rakudo.org";
|
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2019-12-29 04:10:33 +01:00
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
2014-06-11 01:12:33 +02:00
|
|
|
};
|
|
|
|
}
|