lighttpd: add build options for new auth methods
This commit is contained in:
parent
f9c7333bce
commit
baa04706d7
@ -1,15 +1,22 @@
|
||||
{ lib, stdenv, buildPackages, fetchurl, pkg-config, pcre, libxml2, zlib, bzip2, which, file
|
||||
, openssl, enableMagnet ? false, lua5_1 ? null
|
||||
, openssl
|
||||
, enableDbi ? false, libdbi ? null
|
||||
, enableMagnet ? false, lua5_1 ? null
|
||||
, enableMysql ? false, libmysqlclient ? null
|
||||
, enableLdap ? false, openldap ? null
|
||||
, enablePam ? false, linux-pam ? null
|
||||
, enableSasl ? false, cyrus_sasl ? null
|
||||
, enableWebDAV ? false, sqlite ? null, libuuid ? null
|
||||
, enableExtendedAttrs ? false, attr ? null
|
||||
, perl
|
||||
}:
|
||||
|
||||
assert enableDbi -> libdbi != null;
|
||||
assert enableMagnet -> lua5_1 != null;
|
||||
assert enableMysql -> libmysqlclient != null;
|
||||
assert enableLdap -> openldap != null;
|
||||
assert enablePam -> linux-pam != null;
|
||||
assert enableSasl -> cyrus_sasl != null;
|
||||
assert enableWebDAV -> sqlite != null;
|
||||
assert enableWebDAV -> libuuid != null;
|
||||
assert enableExtendedAttrs -> attr != null;
|
||||
@ -33,16 +40,22 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ pcre pcre.dev libxml2 zlib bzip2 which file openssl ]
|
||||
++ lib.optional enableDbi libdbi
|
||||
++ lib.optional enableMagnet lua5_1
|
||||
++ lib.optional enableMysql libmysqlclient
|
||||
++ lib.optional enableLdap openldap
|
||||
++ lib.optional enablePam linux-pam
|
||||
++ lib.optional enableSasl cyrus_sasl
|
||||
++ lib.optional enableWebDAV sqlite
|
||||
++ lib.optional enableWebDAV libuuid;
|
||||
|
||||
configureFlags = [ "--with-openssl" ]
|
||||
++ lib.optional enableDbi "--with-dbi"
|
||||
++ lib.optional enableMagnet "--with-lua"
|
||||
++ lib.optional enableMysql "--with-mysql"
|
||||
++ lib.optional enableLdap "--with-ldap"
|
||||
++ lib.optional enablePam "--with-pam"
|
||||
++ lib.optional enableSasl "--with-sasl"
|
||||
++ lib.optional enableWebDAV "--with-webdav-props"
|
||||
++ lib.optional enableWebDAV "--with-webdav-locks"
|
||||
++ lib.optional enableExtendedAttrs "--with-attr";
|
||||
@ -69,6 +82,6 @@ stdenv.mkDerivation rec {
|
||||
homepage = "http://www.lighttpd.net/";
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = [ maintainers.bjornfor ];
|
||||
maintainers = with maintainers; [ bjornfor brecht ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user