2019-12-29 03:10:33 +00:00
|
|
|
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp }:
|
2014-06-10 23:12:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-29 03:10:33 +00:00
|
|
|
pname = "rakudo";
|
2021-03-18 10:43:15 +00:00
|
|
|
version = "2021.02.1";
|
2014-06-10 23:12:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-05 11:59:32 +00:00
|
|
|
url = "https://www.rakudo.org/dl/rakudo/rakudo-${version}.tar.gz";
|
2021-03-18 10:43:15 +00:00
|
|
|
sha256 = "1xwqx4357bw7h5pdmwxm5wxh8wjvrcdk4rvr3wyrhg1wzy5qvsn8";
|
2014-06-10 23:12:33 +00:00
|
|
|
};
|
|
|
|
|
2019-12-29 03:10:33 +00:00
|
|
|
buildInputs = [ icu zlib gmp perl ];
|
2014-06-10 23:12:33 +00:00
|
|
|
configureScript = "perl ./Configure.pl";
|
2019-12-29 03:10:33 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-nqp=${nqp}/bin/nqp"
|
|
|
|
];
|
|
|
|
|
2020-09-27 23:33:12 +00:00
|
|
|
# Remove test of profiler, fails since 2020.09
|
|
|
|
preCheck = "rm t/09-moar/01-profilers.t";
|
|
|
|
|
2019-12-29 03:10:33 +00:00
|
|
|
# Some tests fail on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2014-06-10 23:12:33 +00: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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.rakudo.org";
|
2016-06-07 17:50:54 +00:00
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2019-12-29 03:10:33 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
2014-06-10 23:12:33 +00:00
|
|
|
};
|
|
|
|
}
|