Skip to content

Instantly share code, notes, and snippets.

@solson
Created December 2, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solson/f57f7a0133ecb187b2d5e9dbf2efc52c to your computer and use it in GitHub Desktop.
Save solson/f57f7a0133ecb187b2d5e9dbf2efc52c to your computer and use it in GitHub Desktop.
{ stdenv, fetchurl, perl, icu, zlib, gmp, readline }:
stdenv.mkDerivation rec {
name = "rakudo-star-${version}";
version = "2018.10";
src = fetchurl {
url = "http://rakudo.org/downloads/star/${name}.tar.gz";
sha256 = "0im3cd5rs2pbcgjmaqgd3yxrvdhz19s0vj6zi8lv7rldnlh454d4";
};
buildInputs = [ icu zlib gmp readline perl ];
configureScript = "perl ./Configure.pl";
configureFlags =
[ "--backends=moar"
"--gen-moar"
"--gen-nqp"
];
postInstall = ''
ln -s $out/share/perl/site/bin/* $out/bin
'';
# FIXME(solson): This works around a problem with the `bin/zef install` step.
HOME = "/tmp";
NO_NETWORK_TESTING = "1";
meta = with stdenv.lib; {
description = "A Perl 6 implementation";
homepage = https://www.rakudo.org;
license = licenses.artistic2;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice vrthra ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment