summaryrefslogtreecommitdiffstats
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2021-01-14 10:51:14 +0800
committerPeter Hoeg <peter@hoeg.com>2021-01-14 12:11:49 +0800
commita089d80e15875023cb30ad7ad209063944631335 (patch)
treebf403e7a3485b5cb01f796e1702fbf9e3e2ea085 /pkgs/servers/http
parent57d324877f91f0d9db7d3deee838581156ecbdcf (diff)
darkhttpd: drive-by cleanup
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/darkhttpd/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/servers/http/darkhttpd/default.nix b/pkgs/servers/http/darkhttpd/default.nix
index 84adea1f4dc4..49097fe2bfac 100644
--- a/pkgs/servers/http/darkhttpd/default.nix
+++ b/pkgs/servers/http/darkhttpd/default.nix
@@ -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;
};
}