forked from rarias/bscpkgs
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.
This commit is contained in:
28
garlic/garlicd/default.nix
Normal file
28
garlic/garlicd/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user