summaryrefslogtreecommitdiffstats
path: root/pkgs/servers
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-11-04 19:21:02 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2021-01-07 23:08:12 +0100
commit01c7c2815cd20ee869bbd3f9b67aa6d88355d2d2 (patch)
treeff953401acd67c34dd0ee02ae56dd7cd2f4e8dee /pkgs/servers
parent7b72e86481c09b25b44fc319aff596c828b5f95f (diff)
uwsgi: build with capabilities support
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/uwsgi/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix
index d9ed810cdf49..449b97c58e77 100644
--- a/pkgs/servers/uwsgi/default.nix
+++ b/pkgs/servers/uwsgi/default.nix
@@ -3,6 +3,7 @@
, plugins ? []
, pam, withPAM ? stdenv.isLinux
, systemd, withSystemd ? stdenv.isLinux
+, libcap, withCap ? stdenv.isLinux
, python2, python3, ncurses
, ruby, php, libmysqlclient
}:
@@ -75,6 +76,7 @@ stdenv.mkDerivation rec {
buildInputs = [ jansson pcre ]
++ lib.optional withPAM pam
++ lib.optional withSystemd systemd
+ ++ lib.optional withCap libcap
++ lib.concatMap (x: x.inputs) needed
;
@@ -83,6 +85,8 @@ stdenv.mkDerivation rec {
++ lib.optional withSystemd "systemd_logger"
);
+ UWSGI_INCLUDES = lib.optionalString withCap "${libcap.dev}/include";
+
passthru = {
inherit python2 python3;
};