bscpkgs/garlic/garlicd/default.nix
Rodrigo Arias Mallo cb5bcd7097 garlicd: add to index and check for error
The garlicd is now available under garlic.garlid and it requires the
extra-sandbox-path option to be properly set.
2021-02-15 16:20:06 +01:00

29 lines
441 B
Nix

{
stdenv
, nix
, garlicTool
}:
let
extraPath = "${garlicTool}:${nix}";
in
stdenv.mkDerivation {
name = "garlicd";
preferLocalBuild = true;
phases = [ "unpackPhase" "installPhase" ];
src = ./garlicd;
unpackPhase = ''
cp $src garlicd
'';
installPhase = ''
substituteInPlace garlicd \
--replace @extraPath@ ${extraPath}
mkdir -p $out/bin
cp -a garlicd $out/bin
'';
}