PHP: Difference between revisions
imported>Jasoncarr0 No edit summary |
imported>Jasoncarr0 mNo edit summary |
||
Line 7: | Line 7: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
See <code>nix search php</code> (<code>nix search nixpkgs php</code> with [Flakes] for additional versions like <code>php74</code>, etc. | See <code>nix search php</code> (<code>nix search nixpkgs php</code> with [[Flakes]]) for additional versions like <code>php74</code>, etc. | ||
== Setting custom php.ini configurations == | == Setting custom php.ini configurations == |
Revision as of 20:14, 13 March 2022
Install
environment.systemPackages = with pkgs; [ php ];
See nix search php
(nix search nixpkgs php
with Flakes) for additional versions like php74
, etc.
Setting custom php.ini configurations
The `buildEnv` attribute on php can add extra configuration options. For instance, to set a memory_limit in the NixOS configuration.nix:
environment.systemPackages =
let
php = pkgs.php.buildEnv { extraConfig = "memory_limit = 2G"; };
in [
php
];