diff options
author | lassulus <lassulus@lassul.us> | 2018-11-18 21:40:11 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-11-18 21:40:11 +0100 |
commit | 02b58a888426414c144f0e833bbb529fa0f53ec5 (patch) | |
tree | 717c9745f50902160f15ab7b910342388675b266 /tv/5pkgs | |
parent | 0435b6511f87c2f74b4d7b45e28c5eef32116228 (diff) | |
parent | 083a8ca2aed285e94383b216347ee4e6ef44c6a6 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/5pkgs')
-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"; + }; +} |