1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/servers/http/thttpd/default.nix

28 lines
639 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "thttpd-${version}";
version = "2.26";
src = fetchurl {
url = "http://acme.com/software/thttpd/${name}.tar.gz";
sha256 = "1dybhpyfrly0m285cdn9jah397bqzylrwzi26gin2h451z3gdcqm";
};
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;
};
}