uwsgi: non-weird postPatch :)
This commit is contained in:
parent
0ebda3cfb8
commit
fffd75e23c
|
@ -92,15 +92,15 @@ stdenv.mkDerivation rec {
|
||||||
inherit python2 python3;
|
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 = ''
|
postPatch = ''
|
||||||
for f in uwsgiconfig.py plugins/*/uwsgiplugin.py; do
|
for f in uwsgiconfig.py plugins/*/uwsgiplugin.py; do
|
||||||
substituteInPlace "$f" \
|
substituteInPlace "$f" \
|
||||||
--replace pkg-config "$PKG_CONFIG"
|
--replace pkg-config "$PKG_CONFIG"
|
||||||
done
|
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 = ''
|
configurePhase = ''
|
||||||
export pluginDir=$out/lib/uwsgi
|
export pluginDir=$out/lib/uwsgi
|
||||||
|
|
Loading…
Reference in a new issue