uwsgi: build with capabilities support
This commit is contained in:
parent
7b72e86481
commit
01c7c2815c
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue