about summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2019-01-06 13:03:49 +0300
committerKirill Elagin <kirelagin@gmail.com>2019-01-06 13:12:19 +0300
commitbd141e9af10f2705ef03054758903b98e771eb47 (patch)
tree12e380fe020b36294396348ebaa0aaee6ae45cad /pkgs/servers/http
parentd94cbd418820a2a9c28b91de1efc427489038278 (diff)
downloadnixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar.gz
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar.bz2
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar.lz
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar.xz
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.tar.zst
nixlib-bd141e9af10f2705ef03054758903b98e771eb47.zip
lighttpd: Hide attr dependency behind an option
* Unbreak darwin
* It was unused anyway, as it is disabled by default
* Now there is an feature-argument to enable it
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/lighttpd/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix
index 13bf0f518c5a..4023265b49bb 100644
--- a/pkgs/servers/http/lighttpd/default.nix
+++ b/pkgs/servers/http/lighttpd/default.nix
@@ -1,8 +1,9 @@
-{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, attr, bzip2, which, file
+{ stdenv, fetchurl, pkgconfig, pcre, libxml2, zlib, bzip2, which, file
 , openssl, enableMagnet ? false, lua5_1 ? null
 , enableMysql ? false, mysql ? null
 , enableLdap ? false, openldap ? null
 , enableWebDAV ? false, sqlite ? null, libuuid ? null
+, enableExtendedAttrs ? false, attr ? null
 , perl
 }:
 
@@ -11,6 +12,7 @@ assert enableMysql -> mysql != null;
 assert enableLdap -> openldap != null;
 assert enableWebDAV -> sqlite != null;
 assert enableWebDAV -> libuuid != null;
+assert enableExtendedAttrs -> attr != null;
 
 stdenv.mkDerivation rec {
   name = "lighttpd-1.4.52";
@@ -25,7 +27,7 @@ stdenv.mkDerivation rec {
   '';
 
   nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ pcre libxml2 zlib attr bzip2 which file openssl ]
+  buildInputs = [ pcre libxml2 zlib bzip2 which file openssl ]
              ++ stdenv.lib.optional enableMagnet lua5_1
              ++ stdenv.lib.optional enableMysql mysql.connector-c
              ++ stdenv.lib.optional enableLdap openldap
@@ -37,7 +39,8 @@ stdenv.mkDerivation rec {
                 ++ stdenv.lib.optional enableMysql "--with-mysql"
                 ++ stdenv.lib.optional enableLdap "--with-ldap"
                 ++ stdenv.lib.optional enableWebDAV "--with-webdav-props"
-                ++ stdenv.lib.optional enableWebDAV "--with-webdav-locks";
+                ++ stdenv.lib.optional enableWebDAV "--with-webdav-locks"
+                ++ stdenv.lib.optional enableExtendedAttrs "--with-attr";
 
   preConfigure = ''
     sed -i "s:/usr/bin/file:${file}/bin/file:g" configure
@@ -59,7 +62,7 @@ stdenv.mkDerivation rec {
     description = "Lightweight high-performance web server";
     homepage = http://www.lighttpd.net/;
     license = stdenv.lib.licenses.bsd3;
-    platforms = platforms.linux;
+    platforms = platforms.linux ++ platforms.darwin;
     maintainers = [ maintainers.bjornfor ];
   };
 }