php.buildEnv: Provide the unwrapped php package in php.unwrapped
This is useful if you need to access the dev output of the unwrapped derivation.
This commit is contained in:
parent
c3d5d92f4a
commit
ef990961bc
|
@ -66,6 +66,13 @@ ignore `enabled`:
|
||||||
php.withExtensions ({ all, ... }: with all; [ opcache imagick ])
|
php.withExtensions ({ all, ... }: with all; [ opcache imagick ])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`php.withExtensions` provides extensions by wrapping a minimal php
|
||||||
|
base package, providing a `php.ini` file listing all extensions to be
|
||||||
|
loaded. You can access this package through the `php.unwrappedPhp`
|
||||||
|
attribute; useful if you, for example, need access to the `dev`
|
||||||
|
output. The generated `php.ini` file can be accessed through the
|
||||||
|
`php.phpIni` attribute.
|
||||||
|
|
||||||
If you want a PHP build with extra configuration in the `php.ini`
|
If you want a PHP build with extra configuration in the `php.ini`
|
||||||
file, you can use `php.buildEnv`. This function takes two named and
|
file, you can use `php.buildEnv`. This function takes two named and
|
||||||
optional parameters: `extensions` and `extraConfig`. `extensions`
|
optional parameters: `extensions` and `extraConfig`. `extensions`
|
||||||
|
|
|
@ -119,6 +119,7 @@ let
|
||||||
buildEnv = mkBuildEnv allArgs allExtensionFunctions;
|
buildEnv = mkBuildEnv allArgs allExtensionFunctions;
|
||||||
withExtensions = mkWithExtensions allArgs allExtensionFunctions;
|
withExtensions = mkWithExtensions allArgs allExtensionFunctions;
|
||||||
phpIni = "${phpWithExtensions}/lib/php.ini";
|
phpIni = "${phpWithExtensions}/lib/php.ini";
|
||||||
|
unwrapped = php;
|
||||||
inherit (php-packages) packages extensions;
|
inherit (php-packages) packages extensions;
|
||||||
};
|
};
|
||||||
paths = [ php ];
|
paths = [ php ];
|
||||||
|
|
Loading…
Reference in a new issue