aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/default.nix
blob: acb5a5fdfe0ca4932f1decf208d786350dfcf31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ 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
''