2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nqp";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2022.02";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-30 13:39:12 +00:00
|
|
|
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-JdPJl0XNhPQEmpvZzya7XcgXklq6r+ccm9tohBzbGLE=";
|
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";
|
2021-12-30 13:39:12 +00:00
|
|
|
homepage = "https://github.com/Raku/nqp";
|
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
|
|
|
};
|
|
|
|
}
|