php: Rename extra init file in store and symlink it instead of copying
This commit is contained in:
parent
367d58415c
commit
ac8a8fe2fa
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
let
|
||||
generic =
|
||||
{ callPackage, lib, stdenv, nixosTests, config, fetchurl, makeWrapper
|
||||
{ callPackage, lib, stdenv, nixosTests, fetchurl, makeWrapper
|
||||
, symlinkJoin, writeText, autoconf, automake, bison, flex, libtool
|
||||
, pkg-config, re2c, apacheHttpd, libargon2, libxml2, pcre, pcre2
|
||||
, systemd, system-sendmail, valgrind, xcbuild
|
||||
|
@ -97,7 +97,7 @@ let
|
|||
(enabledExtensions ++ (getDepsRecursively enabledExtensions)));
|
||||
|
||||
extNames = map getExtName enabledExtensions;
|
||||
extraInit = writeText "php.ini" ''
|
||||
extraInit = writeText "php-extra-init-${version}.ini" ''
|
||||
${lib.concatStringsSep "\n"
|
||||
(lib.textClosureList extensionTexts extNames)}
|
||||
${extraConfig}
|
||||
|
@ -121,7 +121,7 @@ let
|
|||
};
|
||||
paths = [ php ];
|
||||
postBuild = ''
|
||||
cp ${extraInit} $out/lib/php.ini
|
||||
ln -s ${extraInit} $out/lib/php.ini
|
||||
|
||||
wrapProgram $out/bin/php --set PHP_INI_SCAN_DIR $out/lib
|
||||
|
||||
|
|
Loading…
Reference in a new issue