forked from mirrors/nixpkgs
Add optional third party support for fullWebDAV.
This follows the directions fom http://wiki.nginx.org/HttpDavModule.
This commit is contained in:
parent
d7e2acbe97
commit
9808445598
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, openssl, zlib, pcre, libxml2, libxslt }:
|
||||
{ stdenv, fetchurl, fetchgit, openssl, zlib, pcre, libxml2, libxslt, expat, fullWebDAV ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nginx-1.2.4";
|
||||
|
@ -8,7 +8,13 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0hvcv4lgfcrsl40azkd3rxhf73l05jzzgflclpkdvjd95xgw51y5";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl zlib pcre libxml2 libxslt ];
|
||||
dav-ext = fetchgit {
|
||||
url = git://github.com/arut/nginx-dav-ext-module.git;
|
||||
rev = "54cebc1f21fc13391aae692c6cce672fa7986f9d";
|
||||
sha256 = "1dvpq1fg5rslnl05z8jc39sgnvh3akam9qxfl033akpczq1bh8nq";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl zlib pcre libxml2 libxslt ] ++ stdenv.lib.optional fullWebDAV expat;
|
||||
|
||||
configureFlags = [
|
||||
"--with-http_ssl_module"
|
||||
|
@ -19,7 +25,7 @@ stdenv.mkDerivation rec {
|
|||
"--with-http_secure_link_module"
|
||||
# Install destination problems
|
||||
# "--with-http_perl_module"
|
||||
];
|
||||
] ++ stdenv.lib.optional fullWebDAV "--add-module=${dav-ext}";
|
||||
|
||||
preConfigure = ''
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
|
||||
|
|
Loading…
Reference in a new issue