1
0
mirror of https://cgit.krebsco.de/krops synced 2024-06-02 06:13:30 +02:00
krops/pkgs/populate/default.nix
2018-02-28 21:02:21 +01:00

21 lines
367 B
Nix

{ 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
''