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:
parent
37ad2a7d28
commit
f191aa32ba
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue