2013-07-29 06:38:59 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thttpd-${version}";
|
2014-10-08 18:35:48 +01:00
|
|
|
version = "2.26";
|
2013-07-29 06:38:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://acme.com/software/thttpd/${name}.tar.gz";
|
2014-10-08 18:35:48 +01:00
|
|
|
sha256 = "1dybhpyfrly0m285cdn9jah397bqzylrwzi26gin2h451z3gdcqm";
|
2013-07-29 06:38:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p "$out/man/man1"
|
2013-07-29 06:38:59 +01:00
|
|
|
sed -i -e 's/-o bin -g bin *//' Makefile
|
|
|
|
sed -i -e '/chgrp/d' extras/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tiny/turbo/throttling HTTP server";
|
|
|
|
homepage = "http://www.acme.com/software/thttpd/";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|