about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/drush
diff options
context:
space:
mode:
authorJason "Don" O'Conal <lovek323@gmail.com>2013-12-05 04:11:35 +0000
committerJason "Don" O'Conal <lovek323@gmail.com>2013-12-05 04:38:35 +0000
commit1d7108d5f53aa276180c404d10d30b63770c0d75 (patch)
treeff2228c8495c4638c9a5db2b9f3b478030a0a2e1 /pkgs/development/tools/misc/drush
parent614544b4393f19a75d84ad04885b522f3a215858 (diff)
downloadnixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar.gz
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar.bz2
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar.lz
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar.xz
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.tar.zst
nixlib-1d7108d5f53aa276180c404d10d30b63770c0d75.zip
drush: add expression
Diffstat (limited to 'pkgs/development/tools/misc/drush')
-rw-r--r--pkgs/development/tools/misc/drush/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/drush/default.nix b/pkgs/development/tools/misc/drush/default.nix
new file mode 100644
index 000000000000..cb534d511eaf
--- /dev/null
+++ b/pkgs/development/tools/misc/drush/default.nix
@@ -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"
+  '';
+}