Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 36 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }: 2 3stdenv.mkDerivation rec { 4 pname = "rakudo"; 5 version = "2023.04"; 6 7 src = fetchFromGitHub { 8 owner = "rakudo"; 9 repo = "rakudo"; 10 rev = version; 11 hash = "sha256-m5rXriBKfp/i9AIcBGCYGfXIGBRsxgVmBbLJPXXc5AY="; 12 fetchSubmodules = true; 13 }; 14 15 nativeBuildInputs = [ removeReferencesTo ]; 16 17 buildInputs = [ icu zlib gmp perl ]; 18 configureScript = "perl ./Configure.pl"; 19 configureFlags = [ 20 "--backends=moar" 21 "--with-nqp=${nqp}/bin/nqp" 22 ]; 23 24 disallowedReferences = [ stdenv.cc.cc ]; 25 postFixup = '' 26 remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar${stdenv.hostPlatform.extensions.sharedLibrary})" 27 ''; 28 29 meta = with lib; { 30 description = "Raku implementation on top of Moar virtual machine"; 31 homepage = "https://rakudo.org"; 32 license = licenses.artistic2; 33 platforms = platforms.unix; 34 maintainers = with maintainers; [ thoughtpolice vrthra sgo ]; 35 }; 36}