1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/htgen.nix

27 lines
623 B
Nix
Raw Normal View History

2025-12-19 12:44:58 +01:00
{ fetchgit, lib, pkgs, stdenv }:
2023-03-26 19:24:38 +02:00
stdenv.mkDerivation rec {
pname = "htgen";
2025-12-19 12:44:58 +01:00
version = "1.4.0";
2023-03-26 19:24:38 +02:00
src = fetchgit {
2025-12-19 12:44:58 +01:00
url = "https://cgit.krebsco.de/htgen";
2023-03-26 19:24:38 +02:00
rev = "refs/tags/${version}";
2025-12-19 12:44:58 +01:00
sha256 = "1k6xdr4g1p2wjiyizwh33ihw3azbar7kmhyxywcq0whpip9inpmj";
2023-03-26 19:24:38 +02:00
};
installPhase = ''
mkdir -p $out/bin
{
echo '#! ${pkgs.dash}/bin/dash'
echo 'export PATH=${lib.makeBinPath [
2025-12-19 12:44:58 +01:00
pkgs.coreutils
pkgs.jq
pkgs.ucspi-tcp
]}''${PATH+":$PATH"}'
2023-03-26 19:24:38 +02:00
sed 's:^Server=htgen$:&/${version}:' htgen
} > $out/bin/htgen
chmod +x $out/bin/htgen
cp -r examples $out
'';
}