Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 fetchFromGitHub, 4 perl, 5 icu, 6 zlib, 7 gmp, 8 lib, 9 nqp, 10 removeReferencesTo, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "rakudo"; 15 version = "2025.06.1"; 16 17 # nixpkgs-update: no auto update 18 src = fetchFromGitHub { 19 owner = "rakudo"; 20 repo = "rakudo"; 21 rev = version; 22 hash = "sha256-cofiX6VHHeki8GQcMamDyPYoVMUKiuhKVz8Gh8L9qu0="; 23 fetchSubmodules = true; 24 }; 25 26 nativeBuildInputs = [ removeReferencesTo ]; 27 28 buildInputs = [ 29 icu 30 zlib 31 gmp 32 perl 33 ]; 34 configureScript = "perl ./Configure.pl"; 35 configureFlags = [ 36 "--backends=moar" 37 "--with-nqp=${nqp}/bin/nqp" 38 ]; 39 40 disallowedReferences = [ stdenv.cc.cc ]; 41 postFixup = '' 42 remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar${stdenv.hostPlatform.extensions.sharedLibrary})" 43 ''; 44 45 meta = { 46 description = "Raku implementation on top of Moar virtual machine"; 47 homepage = "https://rakudo.org"; 48 license = lib.licenses.artistic2; 49 platforms = lib.platforms.unix; 50 maintainers = with lib.maintainers; [ 51 thoughtpolice 52 sgo 53 prince213 54 ]; 55 }; 56}