tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
uwsgi: fix php plugin build
fixes #33400
closes #33420
Robin Gloster
8 years ago
42af265e
231754d9
+3
-2
1 changed file
expand all
collapse all
unified
split
pkgs
servers
uwsgi
default.nix
+3
-2
pkgs/servers/uwsgi/default.nix
reviewed
···
4
4
, pam, withPAM ? false
5
5
, systemd, withSystemd ? false
6
6
, python2, python3, ncurses
7
7
-
, ruby, php-embed
7
7
+
, ruby, php-embed, mysql
8
8
}:
9
9
10
10
let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else "3"}" {
···
34
34
# usage: https://uwsgi-docs.readthedocs.io/en/latest/PHP.html#running-php-apps-with-nginx
35
35
path = "plugins/php";
36
36
inputs = [ php-embed ] ++ php-embed.buildInputs;
37
37
+
NIX_CFLAGS_LINK = [ "-L${mysql.connector-c}/lib/mysql" ];
37
38
})
38
39
];
39
40
···
88
89
${lib.concatMapStringsSep "\n" (x: x.install or "") needed}
89
90
'';
90
91
91
91
-
NIX_CFLAGS_LINK = [ "-lsystemd" ];
92
92
+
NIX_CFLAGS_LINK = [ "-lsystemd" ] ++ lib.concatMap (x: x.NIX_CFLAGS_LINK or []) needed;
92
93
93
94
meta = with stdenv.lib; {
94
95
homepage = http://uwsgi-docs.readthedocs.org/en/latest/;