nixpkgs/pkgs/servers/http/darkhttpd/default.nix

31 lines
801 B
Nix
Raw Normal View History

2015-11-19 14:46:59 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "darkhttpd";
2017-07-14 00:40:51 +02:00
version = "1.12";
2015-11-19 14:46:59 +01:00
src = fetchurl {
url = "https://unix4lyfe.org/darkhttpd/${pname}-${version}.tar.bz2";
2017-07-14 00:40:51 +02:00
sha256 = "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155";
2015-11-19 14:46:59 +01:00
};
2017-08-28 15:19:40 +02:00
enableParallelBuilding = true;
2015-11-19 14:46:59 +01:00
2017-08-28 15:19:40 +02:00
installPhase = ''
2015-11-19 14:46:59 +01:00
# 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";
2017-08-28 15:19:40 +02:00
homepage = https://unix4lyfe.org/darkhttpd/;
license = licenses.bsd3;
maintainers = with maintainers; [ bobvanderlinden ];
platforms = platforms.all;
2015-11-19 14:46:59 +01:00
};
}