nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 nqp,
5 perl,
6 stdenv,
7 versionCheckHook,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "rakudo";
12 version = "2025.12";
13
14 # nixpkgs-update: no auto update
15 src = fetchFromGitHub {
16 owner = "rakudo";
17 repo = "rakudo";
18 tag = finalAttrs.version;
19 fetchSubmodules = true;
20 hash = "sha256-rCLlLxFexk2fzuuSMrJjbwhgU+HgJNX6Ect6uCsuJmo=";
21 };
22
23 postPatch = ''
24 substituteInPlace src/core.c/CompUnit/Repository/Installation.rakumod \
25 --subst-var out
26 '';
27
28 patches = [
29 ./rakudo-plain-wrapper.patch
30 ];
31
32 configureScript = "${lib.getExe perl} ./Configure.pl";
33 configureFlags = [
34 "--backends=moar"
35 "--with-nqp=${lib.getExe nqp}"
36 ];
37
38 doInstallCheck = true;
39 nativeInstallCheckInputs = [ versionCheckHook ];
40
41 meta = {
42 description = "Raku implementation on top of Moar virtual machine";
43 homepage = "https://rakudo.org";
44 license = lib.licenses.artistic2;
45 platforms = lib.platforms.unix;
46 maintainers = with lib.maintainers; [
47 thoughtpolice
48 sgo
49 prince213
50 ];
51 mainProgram = "rakudo";
52 };
53})