stockholm/krebs/5pkgs/populate/default.nix

37 lines
590 B
Nix
Raw Normal View History

2016-07-16 23:12:30 +00:00
{ coreutils, fetchgit, git, jq, openssh, proot, rsync, stdenv, ... }:
2016-07-16 17:10:20 +00:00
let
PATH = stdenv.lib.makeBinPath [
coreutils
2016-07-16 23:12:30 +00:00
git
2016-07-16 17:10:20 +00:00
jq
openssh
proot
rsync
];
in
stdenv.mkDerivation rec {
name = "populate";
2016-10-23 21:32:20 +00:00
version = "1.2.0";
2016-07-16 17:10:20 +00:00
src = fetchgit {
2016-11-10 22:15:33 +00:00
url = http://cgit.ni.krebsco.de/populate;
2016-07-16 17:10:20 +00:00
rev = "refs/tags/v${version}";
2016-10-23 21:32:20 +00:00
sha256 = "0q3110hkkxn9bc3a63xbx1hyd1fpzz4wrck4lng3j5a9i1y1jm07";
2016-07-16 17:10:20 +00:00
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase = ''
sed \
'1s,.*,&\nPATH=${PATH},' \
-i bin/populate
cp -r . $out
'';
}