summary refs log tree commit diff
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)
downloadnixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar.gz
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar.bz2
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar.lz
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar.xz
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.tar.zst
nixpkgs-a089d80e15875023cb30ad7ad209063944631335.zip
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 84adea1f4dc..49097fe2bfa 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;
   };
 }