git.iko.soy/typeable/nixpkgs
on master help sign in
drush: 6.1.0 -> 8.4.10

Drush 6.x is unsupported, and not compatible with any PHP version we ship in nixpkgs. Drush 8.x still supports Drupal 6, 7 and 8. I switched to using the released .phar, instead of trying to nixify the composer dependencies.

commitf37a71a73706590b45ad82e98042702c4abf4a93 authorFlorian Klink <flokli@flokli.de> dateWed 19 Jan 2022, 19:05 (5 years ago) parent4a94071
1 file changed+18−28
pkgs/development/tools/misc/drush/default.nix+18−28
pkgs/development/tools/misc/drush/default.nix+18−28
@@ -2,40 +2,30 @@
22
33stdenv.mkDerivation rec {
44 pname = "drush";
5− version = "6.1.0";
5+ version = "8.4.10";
66
7− meta = with lib; {
8− description = "Command-line shell and Unix scripting interface for Drupal";
9− homepage = "https://github.com/drush-ops/drush";
10− license = licenses.gpl2;
11− maintainers = with maintainers; [ lovek323 ];
12− platforms = platforms.all;
7+ src = fetchurl {
8+ url = "https://github.com/drush-ops/drush/releases/download/${version}/drush.phar";
9+ sha256 = "sha256-yXSoTDFLsjDiYkRfrIxv2WTVdHzgxZRvtn3Pht5XF4k=";
1310 };
1411
15− src = fetchFromGitHub {
16− owner = "drush-ops";
17− repo = pname;
18− rev = version;
19− sha256 = "sha256-0nf/m+xJmfHsFLuordiMp8UyrGGXuS70+zFHkIxLWhU=";
20− };
21−
22− consoleTable = fetchurl {
23− url = "http://download.pear.php.net/package/Console_Table-1.1.3.tgz";
24− sha256 = "07gbjd7m1fj5dmavr0z20vkqwx1cz2522sj9022p257jifj1yl76";
25− };
12+ dontUnpack = true;
2613
2714 nativeBuildInputs = [ makeWrapper ];
2815
2916 installPhase = ''
30− # install libraries
31− cd lib
32− tar -xf ${consoleTable}
33− cd ..
34−
35− mkdir -p "$out"
36− cp -r . "$out/src"
37− mkdir "$out/bin"
38− wrapProgram "$out/src/drush" --prefix PATH : "${lib.makeBinPath [ which php bash coreutils ncurses ]}"
39− ln -s "$out/src/drush" "$out/bin/drush"
17+ mkdir -p $out/bin
18+ install -D $src $out/libexec/drush/drush.phar
19+ makeWrapper ${php}/bin/php $out/bin/drush \
20+ --add-flags "$out/libexec/drush/drush.phar" \
21+ --prefix PATH : "${lib.makeBinPath [ which php bash coreutils ncurses ]}"
4022 '';
23+
24+ meta = with lib; {
25+ description = "Command-line shell and Unix scripting interface for Drupal";
26+ homepage = "https://github.com/drush-ops/drush";
27+ license = licenses.gpl2;
28+ maintainers = with maintainers; [ lovek323 ];
29+ platforms = platforms.all;
30+ };
4131}