Add dadada-deploy pkg

This commit is contained in:
Tim Schubert 2021-01-16 19:32:56 +01:00
parent 439e5c6953
commit 04ef7f0bb5
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 34 additions and 0 deletions

33
pkgs/deploy.nix Normal file
View file

@ -0,0 +1,33 @@
{ stdenv
, git
, openssh
, bash
}:
stdenv.mkDerivation rec {
name = "dadada-deploy";
version = "0.1";
src = ../utils;
buildInputs = [
git
openssh
bash
];
installPhase = ''
mkdir -p $out/bin
for script in \
deploy \
gen-config
do
install $script $out/bin/
done
'';
meta = with stdenv.lib; {
description = "deploy scripts";
license = licenses.publicDomain;
platforms = platforms.linux;
maintainers = [ "dadada" ];
};
}