2019-12-29 03:10:33 +00:00
|
|
|
{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp }:
|
2014-06-11 00:12:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-29 03:10:33 +00:00
|
|
|
pname = "rakudo";
|
2020-02-26 15:06:51 +00:00
|
|
|
version = "2020.02";
|
2014-06-11 00:12:33 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-12-29 03:10:33 +00:00
|
|
|
url = "https://github.com/rakudo/rakudo/releases/download/${version}/rakudo-${version}.tar.gz";
|
2020-02-26 15:06:51 +00:00
|
|
|
sha256 = "0yhld3ij4mfa42chkfph7lzcl5q9b613hdjmw9rv46appmxvvmrs";
|
2014-06-11 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Some tests fail on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2014-06-11 00:12:33 +01:00
|
|
|
|
2016-06-07 18:50:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-12-29 03:10:33 +00:00
|
|
|
description = "Raku implementation on top of Moar virtual machine";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://www.rakudo.org;
|
2016-06-07 18:50:54 +01:00
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2019-12-29 03:10:33 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
2014-06-11 00:12:33 +01:00
|
|
|
};
|
|
|
|
}
|