nixpkgs/pkgs/development/interpreters/rakudo/default.nix

34 lines
1,021 B
Nix
Raw Normal View History

{ stdenv, fetchurl, perl, icu, zlib, gmp, lib, nqp, removeReferencesTo }:
stdenv.mkDerivation rec {
pname = "rakudo";
2021-10-27 01:23:02 +02:00
version = "2021.10";
src = fetchurl {
2021-06-20 07:01:26 +02:00
url = "https://rakudo.org/dl/rakudo/rakudo-${version}.tar.gz";
2021-10-27 01:23:02 +02:00
sha256 = "sha256-sXTHU3Mo77Xj90JF55+nFZtwExuExZeRbPWmXCrKJKE=";
};
nativeBuildInputs = [ removeReferencesTo ];
buildInputs = [ icu zlib gmp perl ];
configureScript = "perl ./Configure.pl";
configureFlags = [
"--backends=moar"
"--with-nqp=${nqp}/bin/nqp"
];
disallowedReferences = [ stdenv.cc.cc ];
postFixup = ''
2021-10-31 23:11:51 +01:00
remove-references-to -t ${stdenv.cc.cc} "$(readlink -f $out/share/perl6/runtime/dynext/libperl6_ops_moar${stdenv.hostPlatform.extensions.sharedLibrary})"
'';
meta = with lib; {
description = "Raku implementation on top of Moar virtual machine";
2021-06-20 07:01:26 +02:00
homepage = "https://rakudo.org";
license = licenses.artistic2;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
};
}