bozohttpd: use bmake flags instead of a custom installPhase

This commit is contained in:
embr 2021-05-24 13:35:09 +02:00
parent caaee8a55e
commit 28508dce6a

View file

@ -59,17 +59,12 @@ stdenv.mkDerivation rec {
_LDADD = [ "-lcrypt" "-lm" ]
++ optional (luaSupport) "-llua"
++ optionals (sslSupport) [ "-lssl" "-lcrypto" ];
makeFlags = [ "LDADD=$(_LDADD)" ];
makeFlags = [ "LDADD=$(_LDADD)" "prefix=$(out)" "MANDIR=$(out)/share/man" "BINOWN=" ];
doCheck = true;
checkInputs = [ inetutils wget ];
checkFlags = [ "-dx" "VERBOSE=yes" ] ++ optional (!cgiSupport) "CGITESTS=";
installPhase = ''
install -m755 -Dt $out/bin bozohttpd
install -m644 -Dt $out/share/man/man8 bozohttpd.8
'';
meta = with lib; {
description = "Bozotic HTTP server; small and secure";
longDescription = ''