e66cbc5f65
dependencies: - moarvm: init at 2020.01.1 - nqp: init at 2020.01 - zef: init 0.8.2 Replaced the rakudo-star distribution with packages for raku, moarvm, nqp and zef.
34 lines
931 B
Nix
34 lines
931 B
Nix
{ stdenv, fetchFromGitHub, rakudo, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zef";
|
|
version = "0.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ugexe";
|
|
repo = "zef";
|
|
rev = "v${version}";
|
|
sha256 = "064nbl2hz55mpxdcy9zi39s2z6bad3bj73xsna966a7hzkls0a70";
|
|
};
|
|
|
|
buildInputs = [ rakudo makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out"
|
|
# TODO: Find better solution. zef stores cache stuff in $HOME with the
|
|
# default config.
|
|
env HOME=$TMPDIR ${rakudo}/bin/raku -I. ./bin/zef --/depends --/test-depends --/build-depends --install-to=$out install .
|
|
'';
|
|
|
|
postFixup =''
|
|
wrapProgram $out/bin/zef --prefix RAKUDOLIB , "inst#$out"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Raku / Perl6 Module Management";
|
|
homepage = "https://github.com/ugexe/zef";
|
|
license = licenses.artistic2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sgo ];
|
|
};
|
|
}
|