2023-05-06 01:46:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
2014-06-11 00:12:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-29 03:10:33 +00:00
|
|
|
pname = "rakudo";
|
2024-07-03 01:59:59 +01:00
|
|
|
version = "2024.06";
|
2014-06-11 00:12:33 +01:00
|
|
|
|
2024-09-03 12:21:39 +01:00
|
|
|
# nixpkgs-update: no auto update
|
2023-05-06 01:46:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakudo";
|
|
|
|
repo = "rakudo";
|
|
|
|
rev = version;
|
2024-07-03 01:59:59 +01:00
|
|
|
hash = "sha256-6XWfM7KJB+lMf/YFLaQ71DMa8owZtjjuMEyWY++CJnM=";
|
2023-05-06 01:46:04 +01:00
|
|
|
fetchSubmodules = true;
|
2014-06-11 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
2021-06-18 21:02:37 +01:00
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
|
2019-12-29 03:10:33 +00:00
|
|
|
buildInputs = [ icu zlib gmp perl ];
|
2014-06-11 00:12:33 +01:00
|
|
|
configureScript = "perl ./Configure.pl";
|
2019-12-29 03:10:33 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-nqp=${nqp}/bin/nqp"
|
|
|
|
];
|
|
|
|
|
2021-06-18 21:02:37 +01:00
|
|
|
disallowedReferences = [ stdenv.cc.cc ];
|
|
|
|
postFixup = ''
|
2021-10-31 22:11:51 +00: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 21:02:37 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2019-12-29 03:10:33 +00:00
|
|
|
description = "Raku implementation on top of Moar virtual machine";
|
2021-12-23 23:40:32 +00:00
|
|
|
homepage = "https://rakudo.org";
|
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2024-07-05 02:29:06 +01:00
|
|
|
maintainers = with maintainers; [ thoughtpolice sgo ];
|
2014-06-11 00:12:33 +01:00
|
|
|
};
|
|
|
|
}
|