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

31 lines
799 B
Nix
Raw Normal View History

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