summary refs log tree commit diff
path: root/pkgs/development/interpreters/php/default.nix
diff options
context:
space:
mode:
authorEric Sagnes <eric.sagnes@gmail.com>2016-04-29 15:26:20 +0900
committerEric Sagnes <eric.sagnes@gmail.com>2016-04-29 15:26:20 +0900
commita8bc5b67f8caf82585932eab14cb99fcbc4d595b (patch)
tree46046662f9371543be3755241782aacb341ee0e1 /pkgs/development/interpreters/php/default.nix
parent44acb6833bfdac83495131f2bc5e7d3103a46863 (diff)
downloadnixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar.gz
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar.bz2
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar.lz
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar.xz
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.tar.zst
nixpkgs-a8bc5b67f8caf82585932eab14cb99fcbc4d595b.zip
php: add default php.ini
Diffstat (limited to 'pkgs/development/interpreters/php/default.nix')
-rw-r--r--pkgs/development/interpreters/php/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix
index a618fd85d71..d59273a18c3 100644
--- a/pkgs/development/interpreters/php/default.nix
+++ b/pkgs/development/interpreters/php/default.nix
@@ -265,14 +265,12 @@ let
             --replace '@PHP_LDFLAGS@' ""
         done
 
-        iniFile=$out/etc/php-recommended.ini
         [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
         ./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags
       '';
 
-      installPhase = ''
-        unset installPhase; installPhase;
-        cp php.ini-production $iniFile
+      postInstall = ''
+        cp php.ini-production $out/etc/php.ini
       '';
 
       src = fetchurl {