php: Add php package versions to extensions/packages pnames

This commit is contained in:
Elis Hirwing 2021-02-27 18:29:08 +01:00
parent 5df05c902c
commit a081dcf86d
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;