summary refs log tree commit diff
path: root/pkgs/applications/editors/eclipse
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2008-03-02 21:17:23 +0000
committerMarc Weber <marco-oweber@gmx.de>2008-03-02 21:17:23 +0000
commit4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e (patch)
tree9c10e6a7cc64aa045fdcf424232ea50db248b2bd /pkgs/applications/editors/eclipse
parent7d5ddd88a9957aa3d5db284b33f2791f99f243bc (diff)
downloadnixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar.gz
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar.bz2
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar.lz
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar.xz
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.tar.zst
nixpkgs-4d6eef7a28faf0ec7ba7897bf0ba273194d99d3e.zip
eclipse from source expression
svn path=/nixpkgs/trunk/; revision=10916
Diffstat (limited to 'pkgs/applications/editors/eclipse')
-rw-r--r--pkgs/applications/editors/eclipse/build_with_jdk_compiler22
-rw-r--r--pkgs/applications/editors/eclipse/eclipse_classic.nix50
2 files changed, 72 insertions, 0 deletions
diff --git a/pkgs/applications/editors/eclipse/build_with_jdk_compiler b/pkgs/applications/editors/eclipse/build_with_jdk_compiler
new file mode 100644
index 00000000000..bac6fc035f1
--- /dev/null
+++ b/pkgs/applications/editors/eclipse/build_with_jdk_compiler
@@ -0,0 +1,22 @@
+--- a/build.xml	2008-03-02 14:34:05.000000000 +0100
++++ b/build.xml	2008-03-02 14:34:57.000000000 +0100
+@@ -291,19 +291,6 @@
+ 		</condition>
+ 		<property name="bootclasspath" refid="default.bootclasspath" />
+ 
+-		<!--set the compiler and compiler arguments-->
+-		<!--the default compiler is set to the one used by eclipse rel. eng. -->
+-		<condition property="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter">
+-			<available file="${basedir}/ecj.jar" />
+-		</condition>
+-		<fail message="The Eclipse compiler (ecj.jar) cannot be found.">
+-			<condition>
+-				<not>
+-					<equals arg1="${build.compiler}" arg2="org.eclipse.jdt.core.JDTCompilerAdapter" />
+-				</not>
+-			</condition>
+-		</fail>
+-
+ 		<property name="compilerArg" value="-enableJavadoc -encoding ISO-8859-1" />
+ 		<property name="javacSource" value="1.6" />
+ 		<property name="javacTarget" value="1.6" />
diff --git a/pkgs/applications/editors/eclipse/eclipse_classic.nix b/pkgs/applications/editors/eclipse/eclipse_classic.nix
new file mode 100644
index 00000000000..9dba9e6a791
--- /dev/null
+++ b/pkgs/applications/editors/eclipse/eclipse_classic.nix
@@ -0,0 +1,50 @@
+args: with args;
+let arch = if stdenv.system == "x86_64-linux" then "x86_64"
+            else if stdenv.system == "i686-linux" then "x86"
+            else throw "not supported system";
+in
+args.stdenv.mkDerivation rec {
+  #name = "eclipse-classic-3.4M5";
+  name = "eclipse-classic-3.3.1.1";
+
+  unpackPhase = "unzip \$src;     set -x ";
+  buildInputs = [ unzip jdk gtk glib libXtst ant  makeWrapper];
+
+
+  patches=./build_with_jdk_compiler;
+
+  buildPhase = "./build -os linux -ws gtk -arch ${arch}";
+  
+  libraries = [gtk glib libXtst];
+
+  installPhase = "
+    t=\$out/share/${name}
+    ensureDir \$t \$out/bin
+    cd result
+    tar xfz linux-gtk-*.tar.gz
+    mv eclipse \$out
+    "
+    #copied from other eclipse expressions
+    +" rpath=
+    for i in \$libraries; do
+        rpath=\$rpath\${rpath:+:}\$i/lib
+    done
+    find \$out \\( -type f -a -perm +0100 \\) \\
+        -print \\
+        -exec patchelf --interpreter \"$(cat \$NIX_GCC/nix-support/dynamic-linker)\" \\
+        --set-rpath \"\$rpath\" {} \\;
+
+    # Make a wrapper script so that the proper JDK is found.
+    makeWrapper \$out/eclipse/eclipse \$out/bin/eclipse \\
+        --prefix PATH \":\" \"\$jdk/bin\" \\
+        --prefix LD_LIBRARY_PATH \":\" \"\$rpath\"
+  ";
+
+  src = args.fetchurl {
+    #url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/eclipse/downloads/drops/S-3.4M5-200802071530/eclipse-sourceBuild-srcIncluded-3.4M5.zip;
+    #sha256 = "1w6fbpwkys65whygc045556772asggj24x8assnaba6nl70z00az";
+
+    url = http://download.micromata.de/eclipse/eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-sourceBuild-srcIncluded-3.3.1.1.zip;
+    sha256 = "0n56i7ml816f839704qlkgs5ahl0iqgwc80kjq7n7g5rl9a4vhp4";
+  };
+}