Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
perl,
|
|
lib,
|
|
moarvm,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nqp";
|
|
version = "2025.06.1";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitHub {
|
|
owner = "raku";
|
|
repo = "nqp";
|
|
rev = version;
|
|
hash = "sha256-zM3JilRBbx2r8s+dj9Yn8m2SQfQFnn1bxOUiz3Q7FT8=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
configureScript = "${perl}/bin/perl ./Configure.pl";
|
|
|
|
# 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 = {
|
|
description = "Lightweight Raku-like environment for virtual machines";
|
|
homepage = "https://github.com/Raku/nqp";
|
|
license = lib.licenses.artistic2;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [
|
|
thoughtpolice
|
|
sgo
|
|
prince213
|
|
];
|
|
};
|
|
}
|