2013-07-29 07:38:59 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thttpd-${version}";
|
2014-10-08 19:35:48 +02:00
|
|
|
version = "2.26";
|
2013-07-29 07:38:59 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://acme.com/software/thttpd/${name}.tar.gz";
|
2015-10-21 16:57:19 +02:00
|
|
|
sha256 = "1idlpnwrd5fpmnfh477h1lzanavx8jxir2d8adax46zy472dg4s6";
|
2013-07-29 07:38:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p "$out/man/man1"
|
2013-07-29 07:38:59 +02: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;
|
|
|
|
};
|
|
|
|
}
|