1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-01 00:39:48 +01:00
krops/pkgs/populate/default.nix

21 lines
367 B
Nix
Raw Permalink Normal View History

{ coreutils, findutils, git, gnused, jq, openssh, pass, rsync, runCommand, stdenv }:
let
PATH = stdenv.lib.makeBinPath [
coreutils
findutils
git
gnused
jq
openssh
pass
rsync
];
in
runCommand "populate-2.2.0" {} ''
mkdir -p $out/bin
cp ${./populate.sh} $out/bin/populate
sed -i '1s,.*,&\nPATH=${PATH},' $out/bin/populate
''