Unverified Commit 7e3f284f authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

drush: removed, standalone installation are no more supported

parent b453c845
Loading
Loading
Loading
Loading
+0 −31
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, fetchFromGitHub, php, which, makeWrapper, bash, coreutils, ncurses }:

stdenv.mkDerivation rec {
  pname = "drush";
  version = "8.4.12";

  src = fetchurl {
    url = "https://github.com/drush-ops/drush/releases/download/${version}/drush.phar";
    sha256 = "sha256-YtD9lD621LJJAM/ieL4KWvY4o4Uqo3+FWgjGYGdQQaw=";
  };

  dontUnpack = true;

  nativeBuildInputs = [ makeWrapper ];

  installPhase = ''
    mkdir -p $out/bin
    install -D $src $out/libexec/drush/drush.phar
    makeWrapper ${php}/bin/php $out/bin/drush \
      --add-flags "$out/libexec/drush/drush.phar" \
      --prefix PATH : "${lib.makeBinPath [ which php bash coreutils ncurses ]}"
  '';

  meta = with lib; {
    description = "Command-line shell and Unix scripting interface for Drupal";
    homepage = "https://github.com/drush-ops/drush";
    license = licenses.gpl2;
    maintainers = with maintainers; [ lovek323 ];
    platforms = platforms.all;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -234,6 +234,7 @@ mapAliases ({
  dotnet-sdk_3 = dotnetCorePackages.sdk_3_1; # Added 2020-01-19
  dotnet-sdk_5 = dotnetCorePackages.sdk_5_0; # Added 2020-09-11
  drgeo = throw "'drgeo' has been removed as it is outdated and unmaintained"; # Added 2023-10-15
  drush = throw "drush as a standalone package has been removed because it's no longer supported as a standalone tool";
  dtv-scan-tables_linuxtv = dtv-scan-tables; # Added 2023-03-03
  dtv-scan-tables_tvheadend = dtv-scan-tables; # Added 2023-03-03
  du-dust = dust; # Added 2024-01-19
+0 −2
Original line number Diff line number Diff line
@@ -18946,8 +18946,6 @@ with pkgs;
  drm_info = callPackage ../development/tools/drm_info { };
  drush = callPackage ../development/tools/misc/drush { };
  dura = callPackage ../development/tools/misc/dura {
    inherit (darwin.apple_sdk.frameworks) Security;
  };