summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Bravenboer <martin.bravenboer@logicblox.com>2004-01-25 00:50:00 +0000
committerMartin Bravenboer <martin.bravenboer@logicblox.com>2004-01-25 00:50:00 +0000
commitd9cebb072f46ed681d69de82b050dd1ec4857a4e (patch)
tree4a271d821b35369f24c39a86807dc637cc77d2d9 /pkgs/development
parentd427c4271dc3908ee7eef730506ceb93c7fe87c5 (diff)
Added Apache Ant, including configuration of JAVA_HOME and ANT_HOME. Currently only the shell script is patched, but this one is used most in practice.
svn path=/nixpkgs/trunk/; revision=718
Diffstat (limited to 'pkgs/development')
-rwxr-xr-xpkgs/development/tools/build-managers/apache-ant/builder.sh21
-rw-r--r--pkgs/development/tools/build-managers/apache-ant/default.nix10
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/apache-ant/builder.sh b/pkgs/development/tools/build-managers/apache-ant/builder.sh
new file mode 100755
index 0000000000000..4478233712bf9
--- /dev/null
+++ b/pkgs/development/tools/build-managers/apache-ant/builder.sh
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+. $stdenv/setup || exit 1
+
+tar xvfj $src || exit 1
+
+mkdir -p $out
+mv apache-ant-1.6.0/* $out || exit 1
+
+rm -rf $out/docs
+rm $out/*
+
+confpath=$out/etc/nixpaths.conf || exit 1
+sed "s^.etc.ant.conf^$confpath^g" $out/bin/ant > $out/bin/ant_temp || exit 1
+mv $out/bin/ant_temp $out/bin/ant || exit 1
+chmod u+xrw $out/bin/ant || exit 1
+chmod u+x $out/bin/* || exit 1
+echo "
+JAVA_HOME=$j2sdk
+ANT_HOME=$out
+" > $confpath || exit 1
diff --git a/pkgs/development/tools/build-managers/apache-ant/default.nix b/pkgs/development/tools/build-managers/apache-ant/default.nix
new file mode 100644
index 0000000000000..52b5f9b524ba0
--- /dev/null
+++ b/pkgs/development/tools/build-managers/apache-ant/default.nix
@@ -0,0 +1,10 @@
+{stdenv, fetchurl, j2sdk}: derivation {
+  name = "apache-ant-1.6.0";
+  system = stdenv.system;
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://dist.apache.easynet.nl/ant/binaries/apache-ant-1.6.0-bin.tar.bz2;
+    md5 = "01989c306da53862c101d9ea4ebb1f00";
+  };
+  stdenv = stdenv;
+}