tutanota-desktop: 259.250108.1 -> 266.250202.0 (#377234)
[NixPkgs.git] / pkgs / development / interpreters / rakudo / nqp.nix
blobb1d06179fc23a11c75cf701e45297029dcc793bd
2   stdenv,
3   fetchFromGitHub,
4   perl,
5   lib,
6   moarvm,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "nqp";
11   version = "2025.01";
13   # nixpkgs-update: no auto update
14   src = fetchFromGitHub {
15     owner = "raku";
16     repo = "nqp";
17     rev = version;
18     hash = "sha256-45L3fEL8jIk9bkKpuhrsLM014zNW1P7Kf6qVXxJjWws=";
19     fetchSubmodules = true;
20   };
22   buildInputs = [ perl ];
24   configureScript = "${perl}/bin/perl ./Configure.pl";
26   # Fix for issue where nqp expects to find files from moarvm in the same output:
27   # https://github.com/Raku/nqp/commit/e6e069507de135cc71f77524455fc6b03b765b2f
28   #
29   preBuild = ''
30     share_dir="share/nqp/lib/MAST"
31     mkdir -p $out/$share_dir
32     ln -fs ${moarvm}/$share_dir/{Nodes,Ops}.nqp $out/$share_dir
33   '';
35   configureFlags = [
36     "--backends=moar"
37     "--with-moar=${moarvm}/bin/moar"
38   ];
40   doCheck = true;
42   meta = with lib; {
43     description = "Not Quite Perl -- a lightweight Raku-like environment for virtual machines";
44     homepage = "https://github.com/Raku/nqp";
45     license = licenses.artistic2;
46     platforms = platforms.unix;
47     maintainers = with maintainers; [
48       thoughtpolice
49       sgo
50     ];
51   };