summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/get/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-09-27 19:41:01 +0200
committermakefu <github@syntax-fehler.de>2015-09-27 19:41:01 +0200
commitbc2bd6e2f6e9295b14e641b82bff62b40641988d (patch)
tree8bc4b655c12b4e0bc33051116a3adb3003463d34 /krebs/5pkgs/get/default.nix
parentc65614cdef66c38ff2939928e9072873e19e1c37 (diff)
parent170191034e51fb7e80ff6e6ddcac103ec7527afd (diff)
Merge branch 'before-merge'
Diffstat (limited to 'krebs/5pkgs/get/default.nix')
-rw-r--r--krebs/5pkgs/get/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/krebs/5pkgs/get/default.nix b/krebs/5pkgs/get/default.nix
new file mode 100644
index 000000000..e2591db73
--- /dev/null
+++ b/krebs/5pkgs/get/default.nix
@@ -0,0 +1,37 @@
+{ coreutils, gnugrep, gnused, fetchgit, jq, nix, stdenv, ... }:
+
+stdenv.mkDerivation {
+ name = "get-1.1.1";
+
+ src = fetchgit {
+ url = http://cgit.cd.retiolum/get;
+ rev = "e64826a4f5f74cbaa895e538b97d0e523e9709f9";
+ sha256 = "4d1aa07bba52f697cf7aa7ad1b02b9ff41598dfea83c578e77b8d81e3e8830d2";
+ };
+
+ phases = [
+ "unpackPhase"
+ "installPhase"
+ ];
+
+ installPhase =
+ let
+ path = stdenv.lib.makeSearchPath "bin" [
+ coreutils
+ gnugrep
+ gnused
+ jq
+ nix
+ ];
+ in
+ ''
+ mkdir -p $out/bin
+
+ sed \
+ '1s,.*,&\nPATH=${path},' \
+ < ./get \
+ > $out/bin/get
+
+ chmod +x $out/bin/get
+ '';
+}