Revert "php: Add php package versions to extensions/packages pnames"

This reverts commit a081dcf86d.
wip/yesman
Maximilian Bosch 3 years ago
parent d4821a4892
commit 8c26eaa144
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 4
      pkgs/build-support/build-pecl.nix
  2. 2
      pkgs/top-level/php-packages.nix

@ -16,10 +16,10 @@
}@args:
stdenv.mkDerivation (args // {
pname = "php-${php.version}-${pname}";
name = "php-${pname}-${version}";
extensionName = pname;
inherit version src;
inherit src;
nativeBuildInputs = [ autoreconfHook re2c ] ++ nativeBuildInputs;
buildInputs = [ php ] ++ peclDeps ++ buildInputs;

@ -16,7 +16,7 @@ lib.makeScope pkgs.newScope (self: with self; {
# Wrap mkDerivation to prepend pname with "php-" to make names consistent
# with how buildPecl does it and make the file easier to overview.
mkDerivation = { pname, ... }@args: pkgs.stdenv.mkDerivation (args // {
pname = "php-${php.version}-${pname}";
pname = "php-${pname}";
});
pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre;

Loading…
Cancel
Save