2013-09-25 13:18:27 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, attr, bzip2, which, file
|
|
|
|
, openssl, enableMagnet ? false, lua5 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableMagnet -> lua5 != null;
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2013-11-17 23:06:25 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-14 11:55:48 +01:00
|
|
|
name = "lighttpd-1.4.34";
|
2008-09-24 02:42:50 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2013-11-17 23:06:25 +01:00
|
|
|
url = "http://download.lighttpd.net/lighttpd/releases-1.4.x/${name}.tar.xz";
|
2014-01-14 11:55:48 +01:00
|
|
|
sha256 = "1dzgz3gkfyn97s4dm896yjanlhqzzsz38dhjdgla06xgynca1hdl";
|
2008-09-24 02:42:50 +02:00
|
|
|
};
|
|
|
|
|
2013-09-25 13:18:27 +02:00
|
|
|
buildInputs = [ pkgconfig pcre libxml2 zlib attr bzip2 which file openssl ]
|
|
|
|
++ stdenv.lib.optional enableMagnet lua5;
|
2013-04-23 13:30:57 +02:00
|
|
|
|
2013-09-25 13:18:27 +02:00
|
|
|
configureFlags = [ "--with-openssl" ]
|
|
|
|
++ stdenv.lib.optional enableMagnet "--with-lua";
|
2013-04-01 15:28:05 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i "s:/usr/bin/file:${file}/bin/file:g" configure
|
|
|
|
'';
|
2008-09-24 02:42:50 +02:00
|
|
|
|
2013-05-20 19:33:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Lightweight high-performance web server";
|
|
|
|
homepage = http://www.lighttpd.net/;
|
|
|
|
license = "BSD";
|
2013-05-20 19:33:18 +02:00
|
|
|
platforms = platforms.linux;
|
2013-11-17 23:06:25 +01:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2008-09-24 02:42:50 +02:00
|
|
|
};
|
|
|
|
}
|