2023-05-24 13:37:59 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rakudo";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2023.06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rakudo";
|
|
|
|
repo = "rakudo";
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-t+zZEokjcDXp8uuHaOHp1R9LuS0Q3CSDOWhbSFXlNaU=";
|
2023-05-24 13:37:59 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ removeReferencesTo ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ icu zlib gmp perl ];
|
|
|
|
configureScript = "perl ./Configure.pl";
|
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-nqp=${nqp}/bin/nqp"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disallowedReferences = [ stdenv.cc.cc ];
|
|
|
|
postFixup = ''
|
2021-12-06 16:07:01 +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-28 23:13:55 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Raku implementation on top of Moar virtual machine";
|
2021-12-30 13:39:12 +00:00
|
|
|
homepage = "https://rakudo.org";
|
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
|
|
|
};
|
|
|
|
}
|