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

50 lines
746 B
Nix
Raw Normal View History

2015-10-15 00:00:32 +00:00
{ fetchgit, lib, stdenv
, coreutils
, git
2016-02-19 15:37:25 +00:00
, gnumake
2015-10-15 00:00:32 +00:00
, gnused
, jq
2016-02-19 15:37:25 +00:00
, nix
2015-10-15 00:00:32 +00:00
, openssh
, parallel
, ... }:
stdenv.mkDerivation {
2016-02-19 15:37:25 +00:00
name = "push-1.1.2";
2015-10-15 00:00:32 +00:00
src = fetchgit {
2016-11-10 22:15:33 +00:00
url = http://cgit.ni.krebsco.de/push;
2016-02-19 15:37:25 +00:00
rev = "da5b3a4b05ef822cc41d36b6cc2071a2e78506d4";
sha256 = "0gfxz207lm11g77rw02jcqpvzhx07j9hzgjgscbmslzl5r8icd6g";
2015-10-15 00:00:32 +00:00
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase =
let
2016-03-03 18:45:46 +00:00
path = lib.makeBinPath [
2015-10-15 00:00:32 +00:00
coreutils
git
2016-02-19 15:37:25 +00:00
gnumake
2015-10-15 00:00:32 +00:00
gnused
jq
2016-02-19 15:37:25 +00:00
nix
2015-10-15 00:00:32 +00:00
openssh
parallel
];
in
''
mkdir -p $out/bin
sed \
'1s,.*,&\nPATH=${path},' \
< ./push \
> $out/bin/push
chmod +x $out/bin/push
'';
}