php.packages: Use derivations for internalDeps in mkExtension

Make mkExtension put headers in the dev output and use them, instead of
a different part of the current source tree, when referring to another
extension by using internalDeps.

This means external extensions can be built against the internal ones.
This commit is contained in:
talyz
2020-03-28 23:03:35 +01:00
parent b1106a1851
commit 90dcab948c
2 changed files with 18 additions and 9 deletions

View File

@@ -171,7 +171,8 @@ let
in
lib.nameValuePair extName {
text = "${type}=${ext}/lib/php/extensions/${extName}.so";
deps = lib.optionals (ext ? internalDeps) ext.internalDeps;
deps = lib.optionals (ext ? internalDeps)
(map getExtName ext.internalDeps);
})
extList);