2013-07-29 07:38:59 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thttpd-${version}";
|
2016-03-09 00:57:22 +01:00
|
|
|
version = "2.27";
|
2013-07-29 07:38:59 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://acme.com/software/thttpd/${name}.tar.gz";
|
2016-03-09 00:57:22 +01:00
|
|
|
sha256 = "0ykda5k1zzzag59zbd4bkzj1psavq0xnpy7vpk19rhx7mlvvri5i";
|
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;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-07-29 07:38:59 +02:00
|
|
|
};
|
|
|
|
}
|