32 lines
465 B
Nix
32 lines
465 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
makeWrapper,
|
|
curl,
|
|
coreutils,
|
|
openssh,
|
|
gnused,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "madd-client";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -TDm777 $src/client.sh $out/bin/madd-client
|
|
wrapProgram $out/bin/madd-client \
|
|
--prefix PATH : ${
|
|
lib.makeBinPath [
|
|
curl
|
|
coreutils
|
|
openssh
|
|
gnused
|
|
]
|
|
}
|
|
'';
|
|
}
|