summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-03-16 21:53:05 +0100
committerlassulus <lass@lassul.us>2017-03-16 21:53:05 +0100
commite599c372bfa590e898812ed59284724881a76d98 (patch)
treef5e174604881e90abc16d618af7a817ac854781a
parent552a3e8f284e86fd1a8aec1182ef4d4ebeab8d0c (diff)
htgen: 1.0 -> 1.1
-rw-r--r--krebs/5pkgs/htgen/default.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/krebs/5pkgs/htgen/default.nix b/krebs/5pkgs/htgen/default.nix
index 86e9f2b65..f9dfeb3d1 100644
--- a/krebs/5pkgs/htgen/default.nix
+++ b/krebs/5pkgs/htgen/default.nix
@@ -1,18 +1,17 @@
-{ bash, coreutils, gnused, stdenv, fetchgit, script ? "", ucspi-tcp }:
+{ bash, coreutils, gnused, stdenv, fetchgit, ucspi-tcp }:
with import <stockholm/lib>;
let
- version = "1.0";
+ version = "1.1";
in stdenv.mkDerivation {
name = "htgen-${version}";
src = fetchgit {
url = "http://cgit.krebsco.de/htgen";
- rev = "refs/v1.0";
- sha256 = "15z451f57ddaxm21dlqqx2kavzyqx4sgnnzz4ql6vl237979g09s";
+ rev = "refs/tags/v${version}";
+ sha256 = "1zxj0fv9vdrqyl3x2hgq7a6xdlzpclf93akygysrzsqk9wjapp4z";
};
installPhase = ''
- find
mkdir -p $out/bin
{
echo '#! ${bash}/bin/bash'
@@ -20,11 +19,10 @@ in stdenv.mkDerivation {
ucspi-tcp
coreutils
gnused
- ]}'
- sed -n '/^reply_404$/q;p' < htgen
- printf '%s' ${shell.escape script}
- echo 'reply_404'
+ ]}''${PATH+":$PATH"}'
+ cat htgen
} > $out/bin/htgen
chmod +x $out/bin/htgen
+ cp -r examples $out
'';
}