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