2019-12-29 03:10:33 +00:00
|
|
|
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nqp";
|
2020-05-06 14:20:57 +01:00
|
|
|
version = "2020.05";
|
2019-12-29 03:10:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/perl6/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
2020-05-06 14:20:57 +01:00
|
|
|
sha256 = "0xxm0vlra1g467cxc5v65p8pc46w7r9wkcddjl8nk2lnvgcr46r9";
|
2019-12-29 03:10:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
configureScript = "${perl}/bin/perl ./Configure.pl";
|
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-moar=${moarvm}/bin/moar"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Not Quite Perl -- a lightweight Raku-like environment for virtual machines";
|
|
|
|
homepage = "https://github.com/perl6/nqp";
|
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
|
|
|
};
|
|
|
|
}
|