summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/push/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-10-15 15:18:29 +0200
committerlassulus <lass@aidsballs.de>2015-10-15 15:18:29 +0200
commitba5479b4cda8bc70fc67e6e0d90d90aa7a7b9dab (patch)
treeee5b8c780ab6dfd7c0c8b51346a9173d98613fe5 /krebs/5pkgs/push/default.nix
parenta8816bcfe351c1fe9e1a00b27707b56eb544d390 (diff)
parent338df3310352163d3cce850e6ff461c2cdf58eb5 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/5pkgs/push/default.nix')
-rw-r--r--krebs/5pkgs/push/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/krebs/5pkgs/push/default.nix b/krebs/5pkgs/push/default.nix
new file mode 100644
index 000000000..ce496d9c3
--- /dev/null
+++ b/krebs/5pkgs/push/default.nix
@@ -0,0 +1,48 @@
+{ fetchgit, lib, stdenv
+, coreutils
+, get
+, git
+, gnused
+, jq
+, openssh
+, parallel
+, ... }:
+
+stdenv.mkDerivation {
+ name = "push-1.0.0";
+
+ src = fetchgit {
+ url = http://cgit.cd.retiolum/push;
+ rev = "513da89fe50b3bad3d758855f5622c4508977e4a";
+ sha256 = "6124e1d4d4ef57455e2f06891e06fb01d3786846efaf9b79e3176d89988e1b4e";
+ };
+
+ phases = [
+ "unpackPhase"
+ "installPhase"
+ ];
+
+ installPhase =
+ let
+ path = lib.makeSearchPath "bin" [
+ coreutils
+ get
+ git
+ gnused
+ jq
+ openssh
+ parallel
+ ];
+ in
+ ''
+ mkdir -p $out/bin
+
+ sed \
+ '1s,.*,&\nPATH=${path},' \
+ < ./push \
+ > $out/bin/push
+
+ chmod +x $out/bin/push
+ '';
+}
+