792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
35 lines
956 B
Nix
35 lines
956 B
Nix
{ lib, stdenv, fetchFromGitHub, rakudo, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zef";
|
|
version = "0.13.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ugexe";
|
|
repo = "zef";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-FEQwe9MkP+tFZgXiR3hrNS+Jyavj85oYql3uOLP3nwc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ rakudo ];
|
|
|
|
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 lib; {
|
|
description = "Raku / Perl6 Module Management";
|
|
homepage = "https://github.com/ugexe/zef";
|
|
license = licenses.artistic2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sgo ];
|
|
};
|
|
}
|