lighttpd: Fix building with magnet support.
Doesn't build with LUA 5.2, so lets explicitly set LUA 5.1 as a dependency. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
6aaa655e9a
commit
c5354fafce
@ -1,9 +1,9 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, attr, bzip2, which, file
|
{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, attr, bzip2, which, file
|
||||||
, openssl, enableMagnet ? false, lua5 ? null
|
, openssl, enableMagnet ? false, lua5_1 ? null
|
||||||
, enableMysql ? false, mysql ? null
|
, enableMysql ? false, mysql ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableMagnet -> lua5 != null;
|
assert enableMagnet -> lua5_1 != null;
|
||||||
assert enableMysql -> mysql != null;
|
assert enableMysql -> mysql != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig pcre libxml2 zlib attr bzip2 which file openssl ]
|
buildInputs = [ pkgconfig pcre libxml2 zlib attr bzip2 which file openssl ]
|
||||||
++ stdenv.lib.optional enableMagnet lua5
|
++ stdenv.lib.optional enableMagnet lua5_1
|
||||||
++ stdenv.lib.optional enableMysql mysql;
|
++ stdenv.lib.optional enableMysql mysql;
|
||||||
|
|
||||||
configureFlags = [ "--with-openssl" ]
|
configureFlags = [ "--with-openssl" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user