2013-07-29 06:38:59 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "thttpd";
|
2018-05-30 10:12:58 +01:00
|
|
|
version = "2.29";
|
2013-07-29 06:38:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://acme.com/software/thttpd/${pname}-${version}.tar.gz";
|
2018-05-30 10:12:58 +01:00
|
|
|
sha256 = "15x3h4b49wgfywn82i3wwbf38mdns94mbi4ma9xiwsrjv93rzh4r";
|
2013-07-29 06:38:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
|
2017-06-26 20:13:41 +01:00
|
|
|
sed -i -e 's/chmod 2755/chmod 755/' extras/Makefile.in
|
2013-07-29 06:38:59 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.acme.com/software/thttpd/";
|
2013-07-29 06:38:59 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-07-29 06:38:59 +01:00
|
|
|
};
|
|
|
|
}
|