2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nqp";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2021.06";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "1d00lajjdd2k510fb0cb6c8bpklvlnncykf6jz8j8djfp0b2i696";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
configureScript = "${perl}/bin/perl ./Configure.pl";
|
|
|
|
configureFlags = [
|
|
|
|
"--backends=moar"
|
|
|
|
"--with-moar=${moarvm}/bin/moar"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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 ];
|
|
|
|
};
|
|
|
|
}
|