Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / http / darkhttpd / default.nix
blob0d55b3b6b58868ea257cf5a8ccc4584d95850027
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 }:
6 stdenv.mkDerivation rec {
7   pname = "darkhttpd";
8   version = "1.16";
10   src = fetchFromGitHub {
11     owner = "emikulic";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "sha256-dcNoGU08tu950PlwSghoZwGSaSbP8NJ5qhWUi3bAtZY=";
15   };
17   enableParallelBuilding = true;
19   installPhase = ''
20     runHook preInstall
21     install -Dm555 -t $out/bin darkhttpd
22     install -Dm444 -t $out/share/doc/${pname} README.md
23     head -n 18 darkhttpd.c > $out/share/doc/${pname}/LICENSE
24     runHook postInstall
25   '';
27   meta = with lib; {
28     description = "Small and secure static webserver";
29     mainProgram = "darkhttpd";
30     homepage = "https://unix4lyfe.org/darkhttpd/";
31     license = licenses.bsd3;
32     maintainers = with maintainers; [ bobvanderlinden ];
33     platforms = platforms.all;
34   };