php: Add php package versions to extensions/packages pnames

wip/yesman
Elis Hirwing 3 years ago
parent 5df05c902c
commit a081dcf86d
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 4
      pkgs/build-support/build-pecl.nix
  2. 2
      pkgs/top-level/php-packages.nix

@ -16,10 +16,10 @@
}@args:
stdenv.mkDerivation (args // {
name = "php-${pname}-${version}";
pname = "php-${php.version}-${pname}";
extensionName = pname;
inherit src;
inherit version 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-${pname}";
pname = "php-${php.version}-${pname}";
});
pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre;

Loading…
Cancel
Save