mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
php: Add php package versions to extensions/packages pnames
This commit is contained in:
parent
5df05c902c
commit
a081dcf86d
@ -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…
Reference in New Issue
Block a user