2009-03-30 11:32:53 +01: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 :-)
|
|
|
|
|
|
|
|
|
|
|
|
{fetchurl, stdenv, jdk, gtk, glib, libXtst, plugins ? []}:
|
2007-03-17 13:29:15 +00:00
|
|
|
|
|
|
|
let {
|
|
|
|
body =
|
|
|
|
stdenv.mkDerivation {
|
2009-03-30 11:32:53 +01:00
|
|
|
name = "eclipse-sdk-3.5M6";
|
2007-03-17 13:29:15 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = bindist;
|
2009-03-30 11:32:53 +01:00
|
|
|
buildInputs = [];
|
2008-01-18 11:28:41 +00:00
|
|
|
inherit jdk plugins;
|
2007-03-17 13:29:15 +00:00
|
|
|
libraries = [gtk glib libXtst];
|
|
|
|
};
|
|
|
|
|
|
|
|
bindist =
|
2007-12-10 19:58:36 +00:00
|
|
|
if (stdenv.system == "x86_64-linux") then fetchurl {
|
2009-03-30 11:32:53 +01:00
|
|
|
url = ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-x86_64.tar.gz;
|
|
|
|
sha256 = "10p4idp5rcdf7xqwfk3kvmjxhi8x1v835m0y4pn9q4nhfb5643pi";
|
2007-12-10 19:58:36 +00:00
|
|
|
} else fetchurl {
|
2009-03-30 11:32:53 +01:00
|
|
|
url = ftp://mirror.micromata.de/eclipse/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk.tar.gz;
|
|
|
|
sha256 = "1z8j26b632ydhqrmwgbcqgiq7f1a542jam06z2h62mcbqazrcyah";
|
2007-03-17 13:29:15 +00:00
|
|
|
};
|
|
|
|
}
|