diff options
author | tv <tv@shackspace.de> | 2015-08-06 00:21:40 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-08-06 00:23:12 +0200 |
commit | a982edd25d442e443bc67159064eeb080ed3339c (patch) | |
tree | a9a8b6c5bbcb78ecf87e0edfc739f38d18d65105 | |
parent | 01681b908f58e988f028054dd10de44579ca24ff (diff) |
krebs pkgs cac: init at 07ef31c
-rw-r--r-- | krebs/5pkgs/cac.nix | 36 | ||||
-rw-r--r-- | krebs/5pkgs/default.nix | 1 | ||||
-rw-r--r-- | tv/1systems/wu.nix | 1 |
3 files changed, 38 insertions, 0 deletions
diff --git a/krebs/5pkgs/cac.nix b/krebs/5pkgs/cac.nix new file mode 100644 index 000000000..3322e1a13 --- /dev/null +++ b/krebs/5pkgs/cac.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, coreutils, curl, gnused, jq, ... }: + +stdenv.mkDerivation { + name = "cac"; + + src = fetchgit { + url = http://cgit.cd.retiolum/cac; + rev = "07ef31c50613634e88a31233d1fcd2ec3e52bfe8"; + sha256 = "4e94709a3f580a53983ca418fa0b470817ac917aa1b2d095f2420afd36ea9158"; + }; + + phases = [ + "unpackPhase" + "installPhase" + ]; + + installPhase = + let + path = stdenv.lib.makeSearchPath "bin" [ + coreutils + curl + gnused + jq + ]; + in + '' + mkdir -p $out/bin + + sed \ + 's,^\( true) \)\(cac "$@";;\)$,\1 PATH=${path} \2,' \ + < ./cac \ + > $out/bin/cac + + chmod +x $out/bin/cac + ''; +} diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix index 231fda797..5de84f66c 100644 --- a/krebs/5pkgs/default.nix +++ b/krebs/5pkgs/default.nix @@ -6,6 +6,7 @@ in pkgs // { + cac = callPackage ./cac.nix {}; dic = callPackage ./dic.nix {}; genid = callPackage ./genid.nix {}; github-hosts-sync = callPackage ./github-hosts-sync.nix {}; diff --git a/tv/1systems/wu.nix b/tv/1systems/wu.nix index 27691ec56..ae6ef1327 100644 --- a/tv/1systems/wu.nix +++ b/tv/1systems/wu.nix @@ -91,6 +91,7 @@ in sxiv texLive tmux + tvpkgs.cac tvpkgs.dic zathura |