summary refs log tree commit diff
path: root/pkgs/servers/uwsgi
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2018-01-04 15:23:04 +0100
committerRobin Gloster <mail@glob.in>2018-01-04 15:23:04 +0100
commit42af265eeeba158ddcad187dd09d19f1b3da6b05 (patch)
treecbf377facbb98de0eb28088f854b251c4ebefc9e /pkgs/servers/uwsgi
parent231754d995eba46c05cbc49caf6e7627659b0964 (diff)
downloadnixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar.gz
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar.bz2
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar.lz
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar.xz
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.tar.zst
nixpkgs-42af265eeeba158ddcad187dd09d19f1b3da6b05.zip
uwsgi: fix php plugin build
fixes #33400
closes #33420
Diffstat (limited to 'pkgs/servers/uwsgi')
-rw-r--r--pkgs/servers/uwsgi/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix
index 921708f2fd3..4614a9768b0 100644
--- a/pkgs/servers/uwsgi/default.nix
+++ b/pkgs/servers/uwsgi/default.nix
@@ -4,7 +4,7 @@
 , pam, withPAM ? false
 , systemd, withSystemd ? false
 , python2, python3, ncurses
-, ruby, php-embed
+, ruby, php-embed, mysql
 }:
 
 let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else "3"}" {
@@ -34,6 +34,7 @@ let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else
                     # usage: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html#running-php-apps-with-nginx
                     path = "plugins/php";
                     inputs = [ php-embed ] ++ php-embed.buildInputs;
+                    NIX_CFLAGS_LINK = [ "-L${mysql.connector-c}/lib/mysql" ];
                   })
                 ];
 
@@ -88,7 +89,7 @@ stdenv.mkDerivation rec {
     ${lib.concatMapStringsSep "\n" (x: x.install or "") needed}
   '';
 
-  NIX_CFLAGS_LINK = [ "-lsystemd" ];
+  NIX_CFLAGS_LINK = [ "-lsystemd" ] ++ lib.concatMap (x: x.NIX_CFLAGS_LINK or []) needed;
 
   meta = with stdenv.lib; {
     homepage = http://uwsgi-docs.readthedocs.org/en/latest/;