darkhttpd: drive-by cleanup

This commit is contained in:
Peter Hoeg 2021-01-14 10:51:14 +08:00
parent 57d324877f
commit a089d80e15

View file

@ -12,19 +12,16 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
installPhase = ''
# install darkhttpd
install -Dm755 "darkhttpd" "$out/bin/darkhttpd"
# install license
install -d "$out/share/licenses/darkhttpd"
head -n 18 darkhttpd.c > "$out/share/licenses/darkhttpd/LICENSE"
install -Dm555 -t $out/bin darkhttpd
install -Dm444 -t $out/share/doc/${pname} README
head -n 18 darkhttpd.c > $out/share/doc/${pname}/LICENSE
'';
meta = with lib; {
description = "Small and secure static webserver";
homepage = "https://unix4lyfe.org/darkhttpd/";
license = licenses.bsd3;
homepage = "https://unix4lyfe.org/darkhttpd/";
license = licenses.bsd3;
maintainers = with maintainers; [ bobvanderlinden ];
platforms = platforms.all;
platforms = platforms.all;
};
}