2019-12-29 03:10:33 +00:00
|
|
|
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nqp";
|
2021-07-25 08:35:00 +01:00
|
|
|
version = "2021.07";
|
2019-12-29 03:10:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-08-31 09:55:20 +01:00
|
|
|
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
2021-07-25 08:35:00 +01:00
|
|
|
sha256 = "191y6r6qxpib52h3drc5pbjrgf65pn5ahis1dyz55dxk7ajg5anw";
|
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;
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2019-12-29 03:10:33 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|