2015-11-19 13:46:59 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "darkhttpd-${version}";
|
|
|
|
version = "1.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://unix4lyfe.org/darkhttpd/${name}.tar.bz2";
|
|
|
|
sha256 = "0lbcv6pa82md0gqyyskxndf8hm58y76nrnkanc831ia3vm529bdg";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = http://dmr.ath.cx/net/darkhttpd/;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2017-07-13 20:49:12 +01:00
|
|
|
platforms = platforms.all;
|
2015-11-19 13:46:59 +00:00
|
|
|
maintainers = [ maintainers.bobvanderlinden ];
|
|
|
|
};
|
|
|
|
}
|