Files
2026-03-11 23:10:16 +01:00

54 lines
1.1 KiB
Nix

{
fetchFromGitHub,
lib,
nqp,
perl,
stdenv,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rakudo";
version = "2026.02";
# nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "rakudo";
repo = "rakudo";
tag = finalAttrs.version;
fetchSubmodules = true;
hash = "sha256-CqDZ+izOHNxi7sTt6jYqeF/ql5+2WdWBHvkS3N4JjNc=";
};
postPatch = ''
substituteInPlace src/core.c/CompUnit/Repository/Installation.rakumod \
--subst-var out
'';
patches = [
./rakudo-plain-wrapper.patch
];
configureScript = "${lib.getExe perl} ./Configure.pl";
configureFlags = [
"--backends=moar"
"--with-nqp=${lib.getExe nqp}"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "Raku implementation on top of Moar virtual machine";
homepage = "https://rakudo.org";
license = lib.licenses.artistic2;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
thoughtpolice
sgo
prince213
];
mainProgram = "rakudo";
};
})