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

31 lines
788 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 22:40:51 +00: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 22:40:51 +00:00
sha256 = "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155";
2015-11-19 13:46:59 +00:00
};
installPhase = ''
install -d "$out/bin"
# 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-07-14 00:31:53 +00:00
homepage = https://unix4lyfe.org/darkhttpd/;
2015-11-19 13:46:59 +00:00
license = stdenv.lib.licenses.bsd3;
platforms = platforms.all;
2015-11-19 13:46:59 +00:00
maintainers = [ maintainers.bobvanderlinden ];
};
}