php: Add php package versions to extensions/packages pnames
commita081dcf86de4f100efe604a52b32df4b14892f44
authorElis Hirwing <elis@hirwing.se>
dateSat 27 Feb 2021, 18:29 (6 years ago)
parent5df05c9
pkgs/build-support/build-pecl.nix+2−2
@@ -16,10 +16,10 @@
1616}@args:
1717
1818stdenv.mkDerivation (args // {
19− name = "php-${pname}-${version}";
19+ pname = "php-${php.version}-${pname}";
2020 extensionName = pname;
2121
22− inherit src;
22+ inherit version src;
2323
2424 nativeBuildInputs = [ autoreconfHook re2c ] ++ nativeBuildInputs;
2525 buildInputs = [ php ] ++ peclDeps ++ buildInputs;
pkgs/top-level/php-packages.nix+1−1
@@ -16,7 +16,7 @@ lib.makeScope pkgs.newScope (self: with self; {
1616 # Wrap mkDerivation to prepend pname with "php-" to make names consistent
1717 # with how buildPecl does it and make the file easier to overview.
1818 mkDerivation = { pname, ... }@args: pkgs.stdenv.mkDerivation (args // {
19− pname = "php-${pname}";
19+ pname = "php-${php.version}-${pname}";
2020 });
2121
2222 pcre' = if (lib.versionAtLeast php.version "7.3") then pcre2 else pcre;