2015-11-19 13:46:59 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "darkhttpd";
|
2017-07-13 23:40:51 +01:00
|
|
|
version = "1.12";
|
2015-11-19 13:46:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://unix4lyfe.org/darkhttpd/${pname}-${version}.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
|
|
|
};
|
|
|
|
}
|