summary refs log tree commit diff
path: root/pkgs/development/tools/misc/drush
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-03-22 01:27:58 +0100
committerFlorian Klink <flokli@flokli.de>2020-03-22 01:27:58 +0100
commit382e751a68b177f9dd3aedfdbf8cae348b48052b (patch)
tree14dc8341caef0742774a8804526507b51cf9794c /pkgs/development/tools/misc/drush
parent3b3e2c080f71a25d1aaf17fd76179709356058bb (diff)
downloadnixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar.gz
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar.bz2
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar.lz
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar.xz
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.tar.zst
nixpkgs-382e751a68b177f9dd3aedfdbf8cae348b48052b.zip
drush: still needs php 7.3
If invoked with php 7.4 on a up2date Drupal 7 installation, drush
complains with a deprecation warning, that swallows all legit output:

> drush uli
Deprecated function: Array and string offset access syntax with curly braces is   [error]
deprecated in include_once() (line 20 of
/var/www/…/htdocs/includes/file.phar.inc).

Use php7.3 when invoking drush.
Diffstat (limited to 'pkgs/development/tools/misc/drush')
-rw-r--r--pkgs/development/tools/misc/drush/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/drush/default.nix b/pkgs/development/tools/misc/drush/default.nix
index 670c4e258f1..e0f85c45f29 100644
--- a/pkgs/development/tools/misc/drush/default.nix
+++ b/pkgs/development/tools/misc/drush/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, php, which, makeWrapper, bash, coreutils, ncurses }:
+{ stdenv, fetchurl, php73, which, makeWrapper, bash, coreutils, ncurses }:
 
 stdenv.mkDerivation rec {
   name = "drush-6.1.0";
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
     mkdir -p "$out"
     cp -r . "$out/src"
     mkdir "$out/bin"
-    wrapProgram "$out/src/drush" --prefix PATH : "${stdenv.lib.makeBinPath [ which php bash coreutils ncurses ]}"
+    wrapProgram "$out/src/drush" --prefix PATH : "${stdenv.lib.makeBinPath [ which php73 bash coreutils ncurses ]}"
     ln -s "$out/src/drush" "$out/bin/drush"
   '';
 }