uwsgi: non-weird postPatch :)

This commit is contained in:
Дамјан Георгиевски 2021-12-03 01:46:40 +01:00
parent 0ebda3cfb8
commit fffd75e23c

View File

@ -92,15 +92,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);
${lib.optionalString (lib.versionAtLeast php.version "8") ''
sed -e "s/ + php_version//" -i plugins/php/uwsgiplugin.py
''}
'';
configurePhase = ''
export pluginDir=$out/lib/uwsgi