From c13df548a3d962d9810134c2d2f940a241de1418 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 6 May 2020 21:34:19 +0100 Subject: [PATCH] php: override outputsToInstall when using withExtensions At the moment, using .withExtensions on a PHP derivation will produce something which can't be used inside an environment.systemPackages array, because outputsToInstall refers to an output which doesn't exist on the final derivation. Instead, override it back to just containing the single output "out". --- pkgs/development/interpreters/php/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index e0aea60e293..ac0ab2196af 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -113,7 +113,9 @@ let unwrapped = php; tests = nixosTests.php; inherit (php-packages) packages extensions; - inherit (php) meta; + meta = php.meta // { + outputsToInstall = [ "out" ]; + }; }; paths = [ php ]; postBuild = ''