uwsgi: build with capabilities support

This commit is contained in:
rnhmjoj 2020-11-04 19:21:02 +01:00
parent 7b72e86481
commit 01c7c2815c
No known key found for this signature in database
GPG Key ID: BFBAF4C975F76450

View File

@ -3,6 +3,7 @@
, plugins ? [] , plugins ? []
, pam, withPAM ? stdenv.isLinux , pam, withPAM ? stdenv.isLinux
, systemd, withSystemd ? stdenv.isLinux , systemd, withSystemd ? stdenv.isLinux
, libcap, withCap ? stdenv.isLinux
, python2, python3, ncurses , python2, python3, ncurses
, ruby, php, libmysqlclient , ruby, php, libmysqlclient
}: }:
@ -75,6 +76,7 @@ stdenv.mkDerivation rec {
buildInputs = [ jansson pcre ] buildInputs = [ jansson pcre ]
++ lib.optional withPAM pam ++ lib.optional withPAM pam
++ lib.optional withSystemd systemd ++ lib.optional withSystemd systemd
++ lib.optional withCap libcap
++ lib.concatMap (x: x.inputs) needed ++ lib.concatMap (x: x.inputs) needed
; ;
@ -83,6 +85,8 @@ stdenv.mkDerivation rec {
++ lib.optional withSystemd "systemd_logger" ++ lib.optional withSystemd "systemd_logger"
); );
UWSGI_INCLUDES = lib.optionalString withCap "${libcap.dev}/include";
passthru = { passthru = {
inherit python2 python3; inherit python2 python3;
}; };