mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
uwsgi: non-weird postPatch :)
This commit is contained in:
parent
0ebda3cfb8
commit
fffd75e23c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user