07d6a74cbb
GitOrigin-RevId: f5e8bdd07d1afaabf6b37afc5497b1e498b8046f
29 lines
797 B
Nix
29 lines
797 B
Nix
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nqp";
|
|
version = "2021.02";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
|
sha256 = "1vyl6x811f8mbdnp34yj6kfmfpxp2yfrr8cqf1w47rzmr741sjyj";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
configureScript = "${perl}/bin/perl ./Configure.pl";
|
|
configureFlags = [
|
|
"--backends=moar"
|
|
"--with-moar=${moarvm}/bin/moar"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|