Merge pull request #1328 from lovek323/drush

drush: add expression
This commit is contained in:
Michael Raskin 2013-12-04 20:54:52 -08:00
commit a6087d9139
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{ stdenv, fetchurl, php, which, makeWrapper, bash, coreutils, ncurses }:
stdenv.mkDerivation rec {
name = "drush-6.1.0";
meta = with stdenv.lib; {
description = "Command-line shell and Unix scripting interface for Drupal";
homepage = http://github.com/drush-ops/drush;
license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.all;
};
src = fetchurl {
url = https://github.com/drush-ops/drush/archive/6.1.0.tar.gz;
sha256 = "1jgnc4jjyapyn04iczvcz92ic0vq8d1w8xi55ismqyy5cxhqj6bp";
};
consoleTable = fetchurl {
url = http://download.pear.php.net/package/Console_Table-1.1.3.tgz;
sha256 = "07gbjd7m1fj5dmavr0z20vkqwx1cz2522sj9022p257jifj1yl76";
};
buildInputs = [ php which makeWrapper ];
installPhase = ''
# install libraries
cd lib
tar -xf ${consoleTable}
cd ..
mkdir -p "$out"
cp -r . "$out/src"
mkdir "$out/bin"
wrapProgram "$out/src/drush" --prefix PATH : "${which}/bin:${php}/bin:${bash}/bin:${coreutils}/bin:${ncurses}/bin"
ln -s "$out/src/drush" "$out/bin/drush"
'';
}

View File

@ -3597,6 +3597,8 @@ let
doxygen_gui = callPackage ../development/tools/documentation/doxygen { };
drush = callPackage ../development/tools/misc/drush { };
eggdbus = callPackage ../development/tools/misc/eggdbus { };
elfutils = callPackage ../development/tools/misc/elfutils { };