From f403517f58c4f3da1dab43724b80fb410e81d567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Wed, 1 Dec 2021 15:03:36 +0100 Subject: [PATCH] uwsgi: the php 8.x library is just libphp.so, not libphp8 patch taken from the archlinux PKGBUILD https://github.com/archlinux/svntogit-community/blob/dc8835dbc3f1735f5eb0ccdcd877d60446cccec2/trunk/PKGBUILD#L106 --- pkgs/servers/uwsgi/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 42a2671b1ab7..03730adc4c59 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -91,12 +91,15 @@ stdenv.mkDerivation rec { inherit python2 python3; }; + php8 = builtins.head (builtins.splitVersion php.version) == "8"; + php8_no_version = ''sed -e "s/ + php_version//" -i plugins/php/uwsgiplugin.py''; + postPatch = '' for f in uwsgiconfig.py plugins/*/uwsgiplugin.py; do substituteInPlace "$f" \ --replace pkg-config "$PKG_CONFIG" done - ''; + '' + (lib.optionalString php8 php8_no_version); configurePhase = '' export pluginDir=$out/lib/uwsgi