about summary refs log tree commit diff
path: root/pkgs/development/tools/wp-cli
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-01-13 14:02:11 +0800
committerPeter Hoeg <peter@hoeg.com>2018-01-17 14:01:01 +0800
commit35abe070ee175387cc6d6babd75481d139302f45 (patch)
treec4f630a0e31be652439186d680870c9c39a7311f /pkgs/development/tools/wp-cli
parentf607771d0f5e4fa905afff1c772febd9f3103e1a (diff)
downloadnixlib-35abe070ee175387cc6d6babd75481d139302f45.tar
nixlib-35abe070ee175387cc6d6babd75481d139302f45.tar.gz
nixlib-35abe070ee175387cc6d6babd75481d139302f45.tar.bz2
nixlib-35abe070ee175387cc6d6babd75481d139302f45.tar.lz
nixlib-35abe070ee175387cc6d6babd75481d139302f45.tar.xz
nixlib-35abe070ee175387cc6d6babd75481d139302f45.tar.zst
nixlib-35abe070ee175387cc6d6babd75481d139302f45.zip
wp-cli: use as much memory as possible
Instead of imposing an arbitrary memory limit via php.ini, let wp-cli use as
much as possible. If you need to limit the memory use, there are mechanisms in
your OS far better suited for this.
Diffstat (limited to 'pkgs/development/tools/wp-cli')
-rw-r--r--pkgs/development/tools/wp-cli/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/tools/wp-cli/default.nix b/pkgs/development/tools/wp-cli/default.nix
index af6aa6061b0b..674b172b3719 100644
--- a/pkgs/development/tools/wp-cli/default.nix
+++ b/pkgs/development/tools/wp-cli/default.nix
@@ -26,7 +26,7 @@ let
 
   ini = writeText "wp-cli.ini" ''
     [PHP]
-    memory_limit = 512M ; composer can be a bit of a memory pig
+    memory_limit = -1 ; composer uses a lot of memory
 
     [Phar]
     phar.readonly = Off
@@ -40,6 +40,9 @@ in stdenv.mkDerivation rec {
 
     ln      -s     ${bin}        $out/bin/wp
     install -Dm644 ${completion} $out/share/bash-completion/completions/wp
+
+    # this is a very basic run test
+    $out/bin/wp --info
   '';
 
   meta = with stdenv.lib; {