git.iko.soy/typeable/nixpkgs
on master help sign in
php: Rename extra init file in store and symlink it instead of copying
commitac8a8fe2fafa244b14f640083008464e37096c9b authorElis Hirwing <elis@hirwing.se> dateSat 27 Feb 2021, 18:36 (6 years ago) parent367d584
1 file changed+3−3
pkgs/development/interpreters/php/generic.nix+3−3
pkgs/development/interpreters/php/generic.nix+3−3
@@ -5,7 +5,7 @@
55
66let
77 generic =
8− { callPackage, lib, stdenv, nixosTests, config, fetchurl, makeWrapper
8+ { callPackage, lib, stdenv, nixosTests, fetchurl, makeWrapper
99 , symlinkJoin, writeText, autoconf, automake, bison, flex, libtool
1010 , pkg-config, re2c, apacheHttpd, libargon2, libxml2, pcre, pcre2
1111 , systemd, system-sendmail, valgrind, xcbuild
@@ -97,7 +97,7 @@ let
9797 (enabledExtensions ++ (getDepsRecursively enabledExtensions)));
9898
9999 extNames = map getExtName enabledExtensions;
100− extraInit = writeText "php.ini" ''
100+ extraInit = writeText "php-extra-init-${version}.ini" ''
101101 ${lib.concatStringsSep "\n"
102102 (lib.textClosureList extensionTexts extNames)}
103103 ${extraConfig}
@@ -121,7 +121,7 @@ let
121121 };
122122 paths = [ php ];
123123 postBuild = ''
124− cp ${extraInit} $out/lib/php.ini
124+ ln -s ${extraInit} $out/lib/php.ini
125125
126126 wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
127127