2019-12-29 03:10:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rakudo, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zef";
|
2020-05-04 12:31:05 +01:00
|
|
|
version = "0.8.4";
|
2019-12-29 03:10:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ugexe";
|
|
|
|
repo = "zef";
|
|
|
|
rev = "v${version}";
|
2020-05-04 12:31:05 +01:00
|
|
|
sha256 = "02a3awnjr1mgb9275xvp3xms80vcxkq55ffi8sbjzxpwyadj5y5k";
|
2019-12-29 03:10:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|