diff options
author | tv <tv@krebsco.de> | 2018-11-13 13:34:31 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-11-13 13:34:31 +0100 |
commit | b1dfd4b4937d48c4c14b12251bb554f562ef4737 (patch) | |
tree | 1893701d59199f2e342b71a89d336b55b42ead89 /tv/5pkgs/simple | |
parent | 9c09cf30c3eba8137ecf2b4aa3b5fa65a283499e (diff) |
tv hc: init at 1.0.0
Diffstat (limited to 'tv/5pkgs/simple')
-rw-r--r-- | tv/5pkgs/simple/hc.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/hc.nix b/tv/5pkgs/simple/hc.nix new file mode 100644 index 000000000..4d325e16c --- /dev/null +++ b/tv/5pkgs/simple/hc.nix @@ -0,0 +1,37 @@ +{ coreutils, fetchgit, findutils, gawk, gnugrep, makeWrapper, qrencode, stdenv, texlive, utillinux, zbar }: + +stdenv.mkDerivation rec { + name = "hc-${meta.version}"; + + src = fetchgit { + url = "https://cgit.krebsco.de/hc"; + rev = "refs/tags/v${meta.version}"; + sha256 = "09349gja22p0j3xs082kp0fnaaada14bafszn4r3q7rg1id2slfb"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildPhase = null; + + installPhase = '' + mkdir -p $out/bin + + cp $src/bin/hc $out/bin/hc + + wrapProgram $out/bin/hc \ + --prefix PATH : ${stdenv.lib.makeBinPath [ + coreutils + findutils + gawk + gnugrep + qrencode + texlive.combined.scheme-full + utillinux + zbar + ]} + ''; + + meta = { + version = "1.0.0"; + }; +} |