3
0
Fork 0
forked from mirrors/nixpkgs

lighttpd: add enableMysql option, to build 'mod_mysql_vhost'

Now we have options to build all available modules/plugins.
This commit is contained in:
Bjørn Forsman 2014-03-12 23:02:30 +01:00
parent 37ad2a7d28
commit f191aa32ba

View file

@ -1,8 +1,10 @@
{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, attr, bzip2, which, file
, openssl, enableMagnet ? false, lua5 ? null
, enableMysql ? false, mysql ? null
}:
assert enableMagnet -> lua5 != null;
assert enableMysql -> mysql != null;
stdenv.mkDerivation rec {
name = "lighttpd-1.4.35";
@ -13,10 +15,12 @@ stdenv.mkDerivation rec {
};
buildInputs = [ pkgconfig pcre libxml2 zlib attr bzip2 which file openssl ]
++ stdenv.lib.optional enableMagnet lua5;
++ stdenv.lib.optional enableMagnet lua5
++ stdenv.lib.optional enableMysql mysql;
configureFlags = [ "--with-openssl" ]
++ stdenv.lib.optional enableMagnet "--with-lua";
++ stdenv.lib.optional enableMagnet "--with-lua"
++ stdenv.lib.optional enableMysql "--with-mysql";
preConfigure = ''
sed -i "s:/usr/bin/file:${file}/bin/file:g" configure