2021-06-01 22:28:38 +00:00
|
|
|
{ fetchgit, lib, makeWrapper, stdenv
|
|
|
|
, coreutils, findutils, gawk, gnugrep, qrencode, texlive, utillinux, zbar
|
|
|
|
}:
|
2018-11-13 12:34:31 +00:00
|
|
|
|
|
|
|
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 \
|
2021-06-01 22:28:38 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [
|
2018-11-13 12:34:31 +00:00
|
|
|
coreutils
|
|
|
|
findutils
|
|
|
|
gawk
|
|
|
|
gnugrep
|
|
|
|
qrencode
|
|
|
|
texlive.combined.scheme-full
|
|
|
|
utillinux
|
|
|
|
zbar
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
version = "1.0.0";
|
|
|
|
};
|
|
|
|
}
|