2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:54:05 +00:00
nixpkgs/pkgs/development/interpreters/rakudo/nqp.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, perl, lib, moarvm }:
stdenv.mkDerivation rec {
pname = "nqp";
2022-08-21 14:52:41 +00:00
version = "2022.07";
src = fetchurl {
2021-12-23 23:40:15 +00:00
url = "https://github.com/raku/nqp/releases/download/${version}/nqp-${version}.tar.gz";
2022-08-21 14:52:41 +00:00
hash = "sha256-WAgcEG1nKlQGAY/WmRLI1IX9Er8iWVEyXFDJKagjImg=";
};
buildInputs = [ perl ];
configureScript = "${perl}/bin/perl ./Configure.pl";
2022-04-05 22:44:55 +00:00
# Fix for issue where nqp expects to find files from moarvm in the same output:
# https://github.com/Raku/nqp/commit/e6e069507de135cc71f77524455fc6b03b765b2f
#
preBuild = ''
share_dir="share/nqp/lib/MAST"
mkdir -p $out/$share_dir
ln -fs ${moarvm}/$share_dir/{Nodes,Ops}.nqp $out/$share_dir
'';
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";
2021-12-23 23:40:15 +00:00
homepage = "https://github.com/Raku/nqp";
license = licenses.artistic2;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
};
}