uwsgi: non-weird postPatch :)

main
Дамјан Георгиевски 3 years ago
parent 0ebda3cfb8
commit fffd75e23c
  1. 8
      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

Loading…
Cancel
Save