3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/interpreters/rakudo/zef.nix
2020-11-12 13:07:55 +00:00

35 lines
931 B
Nix

{ stdenv, fetchFromGitHub, rakudo, makeWrapper }:
stdenv.mkDerivation rec {
pname = "zef";
version = "0.9.1";
src = fetchFromGitHub {
owner = "ugexe";
repo = "zef";
rev = "v${version}";
sha256 = "1qw8g809gnr0s6hmj4qsd81g1dhsacml6n1fdgk4q45l1mxjfdmv";
};
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 ];
};
}