diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/http/darkhttpd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/http/darkhttpd/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/http/darkhttpd/default.nix b/nixpkgs/pkgs/servers/http/darkhttpd/default.nix new file mode 100644 index 000000000000..3efc97f6296b --- /dev/null +++ b/nixpkgs/pkgs/servers/http/darkhttpd/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "darkhttpd-${version}"; + version = "1.12"; + + src = fetchurl { + url = "https://unix4lyfe.org/darkhttpd/${name}.tar.bz2"; + sha256 = "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"; + }; + + 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" + ''; + + meta = with stdenv.lib; { + description = "Small and secure static webserver"; + homepage = https://unix4lyfe.org/darkhttpd/; + license = licenses.bsd3; + maintainers = with maintainers; [ bobvanderlinden ]; + platforms = platforms.all; + }; +} |