thttpd: fix build with libxcrypt

This commit is contained in:
Martin Weinelt 2022-10-03 17:06:28 +02:00
parent 6f1812a595
commit 3f4de6d4ca
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, libxcrypt }:
stdenv.mkDerivation rec {
pname = "thttpd";
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
sed -i -e 's/chmod 2755/chmod 755/' extras/Makefile.in
'';
buildInputs = [
libxcrypt
];
preInstall = ''
mkdir -p "$out/man/man1"
sed -i -e 's/-o bin -g bin *//' Makefile