diff options
| author | Дамјан Георгиевски <gdamjan@gmail.com> | 2021-12-03 01:46:40 +0100 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-12-26 11:23:39 +0000 |
| commit | 570e3c83f2e4419a510f327f5bf4e8c851a9e917 (patch) | |
| tree | a02c5f1231282acb84d981aad7071663698bc915 | |
| parent | uwsgi: fix "Missing arginfo for uwsgi_version()" errors at runtime (diff) | |
| download | nixpkgs-570e3c83f2e4419a510f327f5bf4e8c851a9e917.tar.gz | |
uwsgi: non-weird postPatch :)origin/backport-148163-to-release-21.11
(cherry picked from commit fffd75e23c02e1571a78f58e8b7a377f0ee50944)
| -rw-r--r-- | pkgs/servers/uwsgi/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 86aff79f2486..e8bfed1ab89b 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -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 |
