stockholm/krebs/5pkgs/simple/populate/default.nix
tv 7ea3136475 populate: stdenv.lib -> lib
Deprecated since nixpkgs 21.05
2021-06-02 02:43:38 +02:00

41 lines
626 B
Nix

{ fetchgit, lib, stdenv
, coreutils, findutils, git, gnused, jq, openssh, pass, rsync
}:
let
PATH = lib.makeBinPath [
coreutils
findutils
git
gnused
jq
openssh
pass
rsync
];
in
stdenv.mkDerivation rec {
name = "populate";
version = "2.3.0";
src = fetchgit {
url = http://cgit.ni.krebsco.de/populate;
rev = "refs/tags/v${version}";
sha256 = "05zr132k1s3a1cc879lvhb83hax7dbfmsbrnxmh7dxjcdg3yhxd7";
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase = ''
sed \
'1s,.*,&\nPATH=${PATH},' \
-i bin/populate
cp -r . $out
'';
}