2009-03-30 12:32:53 +02:00
|
|
|
# recommended installation:
|
|
|
|
# nix-build -A eclipsesdk
|
|
|
|
# then cp -r $store-path ~/my-eclipse; chmod -R 777 ~/my-eclipse # ugh! I'm to lazy to assign permissions properly
|
|
|
|
# maybe also using a wrapper such as this (lower values should suffice for most needs)
|
|
|
|
# eclipseWrapper () {
|
|
|
|
# "$@" -vmargs -Xms2048m -Xmx2048m -XX:MaxPermSize=2048m
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# Why use a local copy? This way it's easier to use the update manager to get plugins :-)
|
|
|
|
|
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
{fetchurl, stdenv, jdk, gtk, glib, libXtst, makeOverridable, plugins ? [], unzip}:
|
2007-03-17 14:29:15 +01:00
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
let eclipseFun =
|
|
|
|
makeOverridable ({name, bindist} :
|
2007-03-17 14:29:15 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-05-24 12:57:41 +02:00
|
|
|
inherit name;
|
2007-03-17 14:29:15 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = bindist;
|
2009-05-24 12:57:41 +02:00
|
|
|
buildInputs = [ unzip /* unzip required by eclipseCDT */ ];
|
2008-01-18 12:28:41 +01:00
|
|
|
inherit jdk plugins;
|
2007-03-17 14:29:15 +01:00
|
|
|
libraries = [gtk glib libXtst];
|
2009-05-24 12:57:41 +02:00
|
|
|
}); in
|
2007-03-17 14:29:15 +01:00
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
eclipseFun {
|
|
|
|
# you can override these settings usnig .override {...}
|
|
|
|
name = "eclipse-sdk-3.5M6";
|
|
|
|
|
|
|
|
bindist =
|
|
|
|
if (stdenv.system == "x86_64-linux") then fetchurl {
|
2009-06-30 16:29:20 +02:00
|
|
|
url = http://download.eclipse.org/eclipse/downloads/drops/N20090621-2000/eclipse-SDK-N20090621-2000-linux-gtk-x86_64.tar.gz;
|
|
|
|
sha256 = "1nzrc7dplf7xzmq3282ysgar0a2jbm2y0vz8yf707da84n60yvg7";
|
2009-05-24 12:57:41 +02:00
|
|
|
} else fetchurl {
|
|
|
|
url = ftp://mirror.micromata.de/eclipse/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk.tar.gz;
|
|
|
|
sha256 = "1z8j26b632ydhqrmwgbcqgiq7f1a542jam06z2h62mcbqazrcyah";
|
|
|
|
};
|
|
|
|
}
|
2009-06-30 16:29:20 +02:00
|
|
|
|
|
|
|
#/nix/store/rzmaas0m5q5gr1343gx2abs4lg832ml4-eclipse-SDK-N20090621-2000-linux-gtk-x86_64.tar.gz
|