From 86e74a4b9746220dad3d03452aae58c014c61cfa Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 21 Mar 2022 15:15:37 +0800 Subject: [PATCH] wp-cli: ensure arguments are sent to wp-cli and not php --- pkgs/development/tools/wp-cli/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/wp-cli/default.nix b/pkgs/development/tools/wp-cli/default.nix index 9ee452b26f9c..0d828eb8b9ed 100644 --- a/pkgs/development/tools/wp-cli/default.nix +++ b/pkgs/development/tools/wp-cli/default.nix @@ -41,7 +41,8 @@ stdenv.mkDerivation rec { mkdir -p $out/bin makeWrapper ${lib.getBin php}/bin/php $out/bin/wp \ --add-flags "-c $dir/php.ini" \ - --add-flags "-f $dir/wp-cli" + --add-flags "-f $dir/wp-cli" \ + --add-flags "--" # this is a very basic run test $out/bin/wp --info >/dev/null