Closed Sleepful closed 9 months ago
Oh, got it...
Basically I took the same approach as https://github.com/svanderburg/composer2nix/issues/15
and mixed it with the memory_limit
example in https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/php.section.md#installing-php-with-extensions-ssec-php-user-guide-installing-with-extensions
and error is gone!
# default.nix
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, noDev ? false, php ? pkgs.php, phpPackages ? pkgs.phpPackages}:
let
composerEnv = import ./composer-env.nix rec {
inherit (pkgs) stdenv lib writeTextFile fetchurl unzip;
php =
pkgs.php.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
mbstring gd intl pdo tokenizer zip xsl
]));
extraConfig = "memory_limit=256M";
};
phpPackages = php.packages;
};
in
import ./php-packages.nix {
inherit composerEnv noDev;
inherit (pkgs) fetchurl fetchgit fetchhg fetchsvn;
}
Hm... not sure what is going on. Any help? I suppose I need to set something like
memory_limit
higher, not sure how to do that. Here is the error I get: