summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2015-04-15 13:12:32 +0200
committerRickard Nilsson <rickynils@gmail.com>2015-04-15 13:12:32 +0200
commitc61dff28ae4a47e7565e6c5030e12182150f63d9 (patch)
tree1bdb43752a4b26376d99142916bc99ad5421b98c /pkgs/servers/http
parent869b86d925a9e2e592e0a6385908faa186eace77 (diff)
downloadnixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar.gz
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar.bz2
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar.lz
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar.xz
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.tar.zst
nixlib-c61dff28ae4a47e7565e6c5030e12182150f63d9.zip
nginx: Add fluentd module
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/nginx/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix
index 456580cc1997..f436177efe83 100644
--- a/pkgs/servers/http/nginx/default.nix
+++ b/pkgs/servers/http/nginx/default.nix
@@ -7,6 +7,7 @@
 , echo ? false
 , ngx_lua ? false
 , set_misc ? false
+, fluent ? false
 }:
 
 with stdenv.lib;
@@ -74,6 +75,13 @@ let
     sha256 = "1bd1isacsiay73nc2jlp0wky32l42a3sjskvfa1082l12g0p1x39";
   };
 
+  fluentd = fetchFromGitHub {
+    owner = "fluent";
+    repo = "nginx-fluentd-module";
+    rev = "8af234043059c857be27879bc547c141eafd5c13";
+    sha256 = "1ycb5zd9sw60ra53jpak1m73zwrjikwhrrh9q6266h1mlyns7zxm";
+  };
+
 in
 
 stdenv.mkDerivation rec {
@@ -119,7 +127,8 @@ stdenv.mkDerivation rec {
     ++ optional echo "--add-module=${echo-ext}"
     ++ optional ngx_lua "--add-module=${develkit-ext} --add-module=${lua-ext}"
     ++ optional set_misc "--add-module=${set-misc-ext}"
-    ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";
+    ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"
+    ++ optional fluent "--add-module=${fluentd}";
 
 
   additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";