nixpkgs/pkgs/servers/http/thttpd/default.nix

28 lines
639 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "thttpd-${version}";
version = "2.26";
src = fetchurl {
url = "http://acme.com/software/thttpd/${name}.tar.gz";
sha256 = "1idlpnwrd5fpmnfh477h1lzanavx8jxir2d8adax46zy472dg4s6";
};
prePatch = ''
sed -i -e 's/getline/getlineX/' extras/htpasswd.c
'';
preInstall = ''
mkdir -p "$out/man/man1"
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;
};
}