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