diff options
author | tv <tv@shackspace.de> | 2015-09-25 22:56:28 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-09-25 22:56:28 +0200 |
commit | 71621bde5313d635e225826e3273e2f007bf2997 (patch) | |
tree | 46e82699e3f50db2cc213460e171888649369aa8 /krebs/5pkgs/get | |
parent | e17fe6555902d8084442d84bb3f59a251ce1e49a (diff) |
get: init at 1
Diffstat (limited to 'krebs/5pkgs/get')
-rw-r--r-- | krebs/5pkgs/get/default.nix | 37 |
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..8a567bbc7 --- /dev/null +++ b/krebs/5pkgs/get/default.nix @@ -0,0 +1,37 @@ +{ coreutils, gnugrep, gnused, fetchgit, jq, nix, stdenv, ... }: + +stdenv.mkDerivation { + name = "get-1"; + + src = fetchgit { + url = http://cgit.cd.retiolum/get; + rev = "a39d54aa2e28d8b15a5879024f64f3f41dee9f3b"; + sha256 = "776836e7c5764e547fa46c7d0e14b9a9ccc26c43af288c51096f4073f17b7f32"; + }; + + 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 + ''; +} |