diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix index 7953729c00cd8..2c0091d40421b 100644 --- a/nixos/modules/services/web-servers/apache-httpd/default.nix +++ b/nixos/modules/services/web-servers/apache-httpd/default.nix @@ -337,7 +337,7 @@ let allModules = concatMap (svc: svc.extraModulesPre) allSubservices ++ map (name: {inherit name; path = "${httpd}/modules/mod_${name}.so";}) apacheModules - ++ optional enablePHP { name = "php5"; path = "${php}/modules/libphp5.so"; } + ++ optional enablePHP { name = "php5"; path = "${php.out}/modules/libphp5.so"; } ++ concatMap (svc: svc.extraModules) allSubservices ++ extraForeignModules; in concatMapStrings load allModules @@ -406,7 +406,7 @@ let ([ mainCfg.phpOptions ] ++ (map (svc: svc.phpOptions) allSubservices)); } '' - cat ${php}/etc/php-recommended.ini > $out + cat ${php.out}/etc/php-recommended.ini > $out echo "$options" >> $out ''; diff --git a/nixos/modules/services/web-servers/phpfpm.nix b/nixos/modules/services/web-servers/phpfpm.nix index 6a60000ce19e6..330992088c512 100644 --- a/nixos/modules/services/web-servers/phpfpm.nix +++ b/nixos/modules/services/web-servers/phpfpm.nix @@ -37,8 +37,8 @@ in { phpPackage = mkOption { type = types.package; - default = pkgs.php; - defaultText = "pkgs.php"; + default = pkgs.php.out; + defaultText = "pkgs.php.out"; description = '' The PHP package to use for running the FPM service. ''; diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index a618fd85d719e..fdc9f859f9957 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -255,6 +255,8 @@ let calendarSupport = config.php.calendar or true; }; + outputs = [ "dev" "out" ]; + configurePhase = '' # Don't record the configure flags since this causes unnecessary # runtime dependencies. @@ -275,6 +277,9 @@ let cp php.ini-production $iniFile ''; + # Also strip libphp5.so which resides in /modules + stripDebugList= [ "lib" "modules" "bin" "sbin" ]; + src = fetchurl { url = "http://www.php.net/distributions/php-${version}.tar.bz2"; inherit sha256;