uwsgi: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-11-10 13:29:46 +01:00 committed by Winter
parent 3cea0ed4aa
commit 0947d3e230

View File

@ -1,4 +1,5 @@
{ stdenv, nixosTests, lib, pkg-config, jansson, pcre, libxcrypt
, expat, zlib
# plugins: list of strings, eg. [ "python2" "python3" ]
, plugins ? []
, pam, withPAM ? stdenv.isLinux
@ -77,6 +78,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ python3 pkg-config makeWrapper ];
buildInputs = [ jansson pcre libxcrypt ]
++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ expat zlib ]
++ lib.optional withPAM pam
++ lib.optional withSystemd systemd
++ lib.optional withCap libcap