mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
30 lines
804 B
Nix
30 lines
804 B
Nix
{ stdenv, fetchurl, perl, lib, moarvm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nqp";
|
|
version = "2020.11";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
|
|
sha256 = "03whmlc6bmwmwrddwd5vqmir0gzwnmf0apvl2q1na09qqj3zb1br";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|