summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-09-26 12:15:08 +0200
committerlassulus <lass@aidsballs.de>2015-09-26 12:15:08 +0200
commite97401da8a402698411b77e88b4a32d388c2ab6f (patch)
tree0194197f0b8fb097213e36e9e51c507ea7328ff0 /krebs
parent5165f8e47fc6b0f18d1d0d38398362a03bae7531 (diff)
parent0727da625d4d1d30b85936499ada784b9f030a1c (diff)
Merge branch 'tv' into newmaster
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/default.nix1
-rw-r--r--krebs/5pkgs/get/default.nix37
2 files changed, 38 insertions, 0 deletions
diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix
index 39d3d69ce..52b5dc78c 100644
--- a/krebs/5pkgs/default.nix
+++ b/krebs/5pkgs/default.nix
@@ -11,6 +11,7 @@ rec {
charybdis = callPackage ./charybdis {};
dic = callPackage ./dic {};
genid = callPackage ./genid {};
+ get = callPackage ./get {};
github-hosts-sync = callPackage ./github-hosts-sync {};
github-known_hosts = callPackage ./github-known_hosts {};
hashPassword = callPackage ./hashPassword {};
diff --git a/krebs/5pkgs/get/default.nix b/krebs/5pkgs/get/default.nix
new file mode 100644
index 000000000..87e5808b9
--- /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.0";
+
+ src = fetchgit {
+ url = http://cgit.cd.retiolum/get;
+ rev = "e75084e39f0402107bb520b5c9d5434a9d7f5d64";
+ sha256 = "5bafc9fa68cdb8ab76437a00354cbe4af4020cbbbbce848c325cae55863d9477";
+ };
+
+ 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
+ '';
+}