2014-01-14 12:50:50 +00:00
|
|
|
{ stdenv, fetchurl, makeDesktopItem, makeWrapper
|
2009-11-20 15:19:00 +00:00
|
|
|
, freetype, fontconfig, libX11, libXext, libXrender, zlib
|
|
|
|
, glib, gtk, libXtst, jre
|
2014-06-01 22:03:36 +01:00
|
|
|
, webkitgtk2 ? null # for internal web browser
|
2015-07-26 09:33:10 +01:00
|
|
|
, buildEnv, writeText, runCommand
|
2015-07-26 09:38:04 +01:00
|
|
|
, recurseIntoAttrs, callPackage
|
2009-05-13 14:55:53 +01:00
|
|
|
}:
|
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
assert stdenv ? glibc;
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
let
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
buildEclipse =
|
2013-05-15 01:25:56 +01:00
|
|
|
{ name, src ? builtins.getAttr stdenv.system sources, sources ? null, description }:
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit name src;
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Eclipse";
|
|
|
|
exec = "eclipse";
|
|
|
|
icon = "eclipse";
|
|
|
|
comment = "Integrated Development Environment";
|
|
|
|
desktopName = "Eclipse IDE";
|
|
|
|
genericName = "Integrated Development Environment";
|
|
|
|
categories = "Application;Development;";
|
|
|
|
};
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2014-01-14 12:50:50 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
2011-04-11 21:29:47 +01:00
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
# Unpack tarball.
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2011-04-11 21:29:47 +01:00
|
|
|
tar xfvz $src -C $out
|
|
|
|
|
|
|
|
# Patch binaries.
|
|
|
|
interpreter=$(echo ${stdenv.glibc}/lib/ld-linux*.so.2)
|
2013-10-11 05:37:08 +01:00
|
|
|
libCairo=$out/eclipse/libcairo-swt.so
|
2011-04-11 21:29:47 +01:00
|
|
|
patchelf --set-interpreter $interpreter $out/eclipse/eclipse
|
2013-10-11 05:37:08 +01:00
|
|
|
[ -f $libCairo ] && patchelf --set-rpath ${freetype}/lib:${fontconfig}/lib:${libX11}/lib:${libXrender}/lib:${zlib}/lib $libCairo
|
2011-04-11 21:29:47 +01:00
|
|
|
|
|
|
|
# Create wrapper script. Pass -configuration to store
|
|
|
|
# settings in ~/.eclipse/org.eclipse.platform_<version> rather
|
|
|
|
# than ~/.eclipse/org.eclipse.platform_<version>_<number>.
|
|
|
|
productId=$(sed 's/id=//; t; d' $out/eclipse/.eclipseproduct)
|
|
|
|
productVersion=$(sed 's/version=//; t; d' $out/eclipse/.eclipseproduct)
|
|
|
|
|
|
|
|
makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
|
|
|
|
--prefix PATH : ${jre}/bin \
|
2014-06-01 22:03:36 +01:00
|
|
|
--prefix LD_LIBRARY_PATH : ${glib}/lib:${gtk}/lib:${libXtst}/lib${stdenv.lib.optionalString (webkitgtk2 != null) ":${webkitgtk2}/lib"} \
|
2011-04-11 21:29:47 +01:00
|
|
|
--add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration"
|
|
|
|
|
|
|
|
# Create desktop item.
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/applications
|
2011-04-11 21:29:47 +01:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
2012-10-16 17:38:53 +01:00
|
|
|
mkdir -p $out/share/pixmaps
|
2012-10-17 13:16:23 +01:00
|
|
|
ln -s $out/eclipse/icon.xpm $out/share/pixmaps/eclipse.xpm
|
2011-04-11 21:29:47 +01:00
|
|
|
''; # */
|
2010-05-09 15:17:21 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-04-11 21:29:47 +01:00
|
|
|
homepage = http://www.eclipse.org/;
|
|
|
|
inherit description;
|
2010-05-09 15:17:21 +01:00
|
|
|
};
|
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in {
|
2010-05-09 15:17:21 +01:00
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
eclipse_sdk_35 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-3.5.2";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
src =
|
2010-05-09 15:17:21 +01:00
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk-x86_64.tar.gz;
|
2010-05-09 15:17:21 +01:00
|
|
|
md5 = "54e2ce0660b2b1b0eb4267acf70ea66d";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk.tar.gz;
|
2010-05-09 15:17:21 +01:00
|
|
|
md5 = "bde55a2354dc224cf5f26e5320e72dac";
|
2011-04-11 21:29:47 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# !!! Use mirror://eclipse/.
|
|
|
|
|
|
|
|
eclipse_sdk_36 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-3.6.2";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk-x86_64.tar.gz;
|
2011-04-11 21:29:47 +01:00
|
|
|
sha256 = "0dfcfadcd6337c897fbfd5b292de481931dfce12d43289ecb93691fd27dd47f4";
|
2010-05-09 15:17:21 +01:00
|
|
|
}
|
2011-04-11 21:29:47 +01:00
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.6.2-201102101200/eclipse-SDK-3.6.2-linux-gtk.tar.gz;
|
2011-04-11 21:29:47 +01:00
|
|
|
sha256 = "1bh8ykliqr8wbciv13vpiy50rvm7yszk7y8dslr796dbwhi5b1cj";
|
|
|
|
};
|
2009-05-13 14:55:53 +01:00
|
|
|
};
|
|
|
|
|
2015-03-18 15:30:01 +00:00
|
|
|
eclipse_scala_sdk_40 = buildEclipse {
|
|
|
|
name = "eclipse-scala_sdk-4.0.0";
|
|
|
|
description = "Eclipse IDE for Scala Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl { # tested
|
|
|
|
url = http://downloads.typesafe.com/scalaide-pack/4.0.0.vfinal-luna-211-20150305/scala-SDK-4.0.0-vfinal-2.11-linux.gtk.x86_64.tar.gz;
|
|
|
|
sha256 = "b65c5e8160e72c8389537e9e427138e6daa2065f9df3a943a86e40dd1543dd83";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl { # untested
|
|
|
|
url = http://downloads.typesafe.com/scalaide-pack/4.0.0.vfinal-luna-211-20150305/scala-SDK-4.0.0-vfinal-2.11-linux.gtk.x86.tar.gz;
|
|
|
|
sha256 = "f422aea5903c97d212264a5a43c6ebc638aecbd4ce5e6078d92618725bc5d31e";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-04-11 21:29:47 +01:00
|
|
|
eclipse_cpp_36 = buildEclipse {
|
|
|
|
name = "eclipse-cpp-3.6.2";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/helios/SR2/eclipse-cpp-helios-SR2-linux-gtk-x86_64.tar.gz;
|
2011-04-11 21:29:47 +01:00
|
|
|
sha1 = "6f914e11fa15a900c46825e4aa8299afd76e7e65";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/helios/SR2/eclipse-cpp-helios-SR2-linux-gtk.tar.gz;
|
2011-04-11 21:29:47 +01:00
|
|
|
sha1 = "1156e4bc0253ae3a3a4e54839e4944dc64d3108f";
|
|
|
|
};
|
2009-11-20 15:33:06 +00:00
|
|
|
};
|
2011-04-11 21:29:47 +01:00
|
|
|
|
2011-04-12 09:41:53 +01:00
|
|
|
eclipse_modeling_36 = buildEclipse {
|
|
|
|
name = "eclipse-modeling-3.6.2";
|
|
|
|
description = "Eclipse Modeling Tools (includes Incubating components)";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/helios/SR2/eclipse-modeling-helios-SR2-incubation-linux-gtk-x86_64.tar.gz;
|
2011-04-12 09:41:53 +01:00
|
|
|
sha1 = "e96f5f006298f68476f4a15a2be8589158d5cc61";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/helios/SR2/eclipse-modeling-helios-SR2-incubation-linux-gtk.tar.gz;
|
2011-04-12 09:41:53 +01:00
|
|
|
sha1 = "696377895bb26445de39d82a916b7e69edb1d939";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2011-08-16 19:17:31 +01:00
|
|
|
eclipse_sdk_37 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-3.7";
|
|
|
|
description = "Eclipse Classic";
|
2013-05-15 01:25:56 +01:00
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-SDK-3.7.2-linux-gtk-x86_64.tar.gz;
|
2013-05-15 01:25:56 +01:00
|
|
|
sha256 = "0nf4nv7awhp1k8b1hjb7chpjyjrqnyszsjbc4dlk9phpjv3j4wg5";
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-SDK-3.7.2-linux-gtk.tar.gz;
|
2013-05-15 01:25:56 +01:00
|
|
|
sha256 = "1isn7i45l9kyn2yx6vm88jl1gnxph8ynank0aaa218cg8kdygk7j";
|
2011-08-16 19:17:31 +01:00
|
|
|
};
|
2013-05-15 01:25:56 +01:00
|
|
|
};
|
2011-08-16 19:17:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
eclipse_cpp_37 = buildEclipse {
|
|
|
|
name = "eclipse-cpp-3.7";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/indigo/R/eclipse-cpp-indigo-incubation-linux-gtk-x86_64.tar.gz;
|
2011-08-16 19:17:31 +01:00
|
|
|
sha256 = "14ppc9g9igzvj1pq7jl01vwhzb66nmzbl9wsdl1sf3xnwa9wnqk3";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/indigo/R/eclipse-cpp-indigo-incubation-linux-gtk.tar.gz;
|
2011-08-16 19:17:31 +01:00
|
|
|
sha256 = "1cvg1vgyazrkinwzlvlf0dpl197p4784752srqybqylyj5psdi3b";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-06-19 03:15:05 +01:00
|
|
|
eclipse_cpp_42 = buildEclipse {
|
2013-04-15 20:17:23 +01:00
|
|
|
name = "eclipse-cpp-4.2";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/juno/SR2/eclipse-cpp-juno-SR2-linux-gtk-x86_64.tar.gz;
|
2013-04-15 20:17:23 +01:00
|
|
|
sha256 = "1qq04926pf7v9sf3s0z53zvlbl1j0rmmjmbmhqi49473fnjikh7y";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/juno/SR2/eclipse-cpp-juno-SR2-linux-gtk.tar.gz;
|
2013-04-15 20:17:23 +01:00
|
|
|
sha256 = "1a4s9qlhfpfpdhvffyglnfdr3dq5r2ywcxqywhqi95yhq5nmsgyk";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-05-05 21:39:37 +01:00
|
|
|
eclipse_cpp_43 = buildEclipse {
|
|
|
|
name = "eclipse-cpp-4.3.2";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/kepler/SR2/eclipse-cpp-kepler-SR2-linux-gtk-x86_64.tar.gz;
|
2014-05-05 21:39:37 +01:00
|
|
|
sha256 = "16zhjm6bx78263b1clg75kfiliahkhwg0k116vp9fj039nlpc30l";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/kepler/SR2/eclipse-cpp-kepler-SR2-linux-gtk.tar.gz;
|
2014-05-05 21:39:37 +01:00
|
|
|
sha256 = "0d6jlj7hwz8blx6csrlyi2h2prql0wckbh7ihwjmgclwpcpj84g6";
|
|
|
|
};
|
|
|
|
};
|
2014-09-05 19:35:28 +01:00
|
|
|
|
|
|
|
eclipse_cpp_44 = buildEclipse {
|
|
|
|
name = "eclipse-cpp-4.4";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/luna/R/eclipse-cpp-luna-R-linux-gtk-x86_64.tar.gz;
|
2014-09-05 19:35:28 +01:00
|
|
|
md5 = "b0a6ee33e8108a7ff4682ab911271b04";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/luna/R/eclipse-cpp-luna-R-linux-gtk.tar.gz;
|
2014-09-05 19:35:28 +01:00
|
|
|
md5 = "5000f93cecf6ef9af112f0df6e8c87f3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-07-28 19:52:36 +01:00
|
|
|
eclipse_cpp_45 = buildEclipse {
|
|
|
|
name = "eclipse-cpp-4.5";
|
|
|
|
description = "Eclipse IDE for C/C++ Developers, Mars release";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/mars/R/eclipse-cpp-mars-R-linux-gtk-x86_64.tar.gz;
|
|
|
|
sha1 = "11f9583e23ae68eb675107e6c9acc48e0a2520ae";
|
|
|
|
}
|
|
|
|
else if stdenv.system == "i686-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/technology/epp/downloads/release/mars/R/eclipse-cpp-mars-R-linux-gtk.tar.gz;
|
|
|
|
sha1 = "45dddb8c8f2ec79b7e25cc13d93785863ffe4791";
|
|
|
|
}
|
|
|
|
else throw "Unsupported system: ${stdenv.system}";
|
|
|
|
};
|
2014-05-05 21:39:37 +01:00
|
|
|
|
2013-05-15 01:25:56 +01:00
|
|
|
eclipse_sdk_421 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.2.1";
|
2012-07-28 20:54:40 +01:00
|
|
|
description = "Eclipse Classic";
|
|
|
|
src =
|
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz;
|
2012-11-07 21:33:03 +00:00
|
|
|
sha256 = "1mlyy90lk08lb2971ynglgi3nqvqfq1k70md2kb39jk160wd1xrk";
|
2012-07-28 20:54:40 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-linux-gtk.tar.gz;
|
2012-11-07 21:33:03 +00:00
|
|
|
sha256 = "1av6qm9wkbyk123qqf38f0jq4jv2bj9wp6fmpnl55zg6qr463c1w";
|
2012-07-28 20:54:40 +01:00
|
|
|
};
|
|
|
|
};
|
2013-05-15 01:25:56 +01:00
|
|
|
|
|
|
|
eclipse_sdk_422 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.2.2";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.2.2-201302041200/eclipse-SDK-4.2.2-linux-gtk-x86_64.tar.gz;
|
2013-05-15 01:25:56 +01:00
|
|
|
sha256 = "0ysa6ymk4h3k1vn59dc909iy197kmx132671kbzfwbim87jmgnqb";
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.2.2-201302041200/eclipse-SDK-4.2.2-linux-gtk.tar.gz;
|
2013-05-15 01:25:56 +01:00
|
|
|
sha256 = "038yibbrcia38wi72qrdl03g7l35mpvl5nxdfdnvpqxrkfffb826";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2013-10-11 05:37:08 +01:00
|
|
|
|
|
|
|
eclipse_sdk_431 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.3.1";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.3.1-201309111000/eclipse-SDK-4.3.1-linux-gtk-x86_64.tar.gz;
|
2013-10-11 05:37:08 +01:00
|
|
|
sha256 = "0ncm56ylwxw9z8rk8ccgva68c2yr9yrf1kcr1zkgw6p87xh1yczd";
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.3.1-201309111000/eclipse-SDK-4.3.1-linux-gtk.tar.gz;
|
2013-10-11 05:37:08 +01:00
|
|
|
sha256 = "1zxsh838khny7mvl01h28xna6xdh01yi4mvls28zj22v0340lgsg";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-06-28 18:47:35 +01:00
|
|
|
eclipse_sdk_44 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.4";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.4-201406061215/eclipse-SDK-4.4-linux-gtk-x86_64.tar.gz;
|
2014-06-28 18:47:35 +01:00
|
|
|
sha256 = "14hdkijsjq0hhzi9ijpwjjkhz7wm0pry86l3dniy5snlh3l5bsb2";
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.4-201406061215/eclipse-SDK-4.4-linux-gtk.tar.gz;
|
2014-06-28 18:47:35 +01:00
|
|
|
sha256 = "0hjc4zrsmik6vff851p0a4ydnx99840j2xrx8348kk6h0af8vx6z";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-03-03 17:53:47 +00:00
|
|
|
eclipse_sdk_442 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.4.2";
|
|
|
|
description = "Eclipse Classic";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.4.2-201502041700/eclipse-SDK-4.4.2-linux-gtk-x86_64.tar.gz;
|
2015-03-03 17:53:47 +00:00
|
|
|
sha256 = "0g00alsixfaakmn4khr0m9fxvkrbhbg6qqfa27xr6a9np6gzg98l";
|
|
|
|
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.4.2-201502041700/eclipse-SDK-4.4.2-linux-gtk.tar.gz;
|
2015-04-21 18:31:49 +01:00
|
|
|
sha256 = "1hacyjjwhhxi7r3xyhpqgjqpd5r0irw9bfkalz5s5l6shb0lq4i7";
|
2015-03-03 17:53:47 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-06-30 18:56:52 +01:00
|
|
|
|
|
|
|
eclipse_sdk_45 = buildEclipse {
|
|
|
|
name = "eclipse-sdk-4.5";
|
|
|
|
description = "Eclipse Mars Classic";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.5-201506032000/eclipse-SDK-4.5-linux-gtk-x86_64.tar.gz;
|
2015-06-30 18:56:52 +01:00
|
|
|
sha256 = "0vfql4gh263ms8bg7sgn05gnjajplx304cn3nr03jlacgr3pkarf";
|
|
|
|
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
2015-07-28 23:30:58 +01:00
|
|
|
url = http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.5-201506032000/eclipse-SDK-4.5-linux-gtk.tar.gz;
|
2015-06-30 18:56:52 +01:00
|
|
|
sha256 = "0xv66l6hdlvxpswcqrsh398wg6xhy30f833dr7jvvz45s5437hm3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-07-26 09:33:10 +01:00
|
|
|
|
2015-07-28 23:21:51 +01:00
|
|
|
eclipse-platform = buildEclipse {
|
|
|
|
name = "eclipse-platform-4.5";
|
|
|
|
description = "Eclipse platform";
|
|
|
|
sources = {
|
|
|
|
"x86_64-linux" = fetchurl {
|
|
|
|
url = "https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.5-201506032000/eclipse-platform-4.5-linux-gtk-x86_64.tar.gz";
|
|
|
|
sha256 = "1510j41yr86pbzwf48kjjdd46nkpkh8zwn0hna0cqvsw1gk2vqcg";
|
|
|
|
|
|
|
|
};
|
|
|
|
"i686-linux" = fetchurl {
|
|
|
|
url = "https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.5-201506032000/eclipse-platform-4.5-linux-gtk.tar.gz";
|
|
|
|
sha256 = "1f97jd3qbi3830y3djk8bhwzd9whsq8gzfdk996chxc55prn0qbd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-07-26 09:33:10 +01:00
|
|
|
eclipseWithPlugins = { eclipse, plugins ? [], jvmArgs ? [] }:
|
|
|
|
let
|
|
|
|
# Gather up the desired plugins.
|
|
|
|
pluginEnv = buildEnv {
|
|
|
|
name = "eclipse-plugins";
|
2015-07-29 22:29:38 +01:00
|
|
|
paths =
|
|
|
|
with stdenv.lib;
|
|
|
|
filter (x: x ? isEclipsePlugin) (closePropagation plugins);
|
2015-07-26 09:33:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Prepare the JVM arguments to add to the ini file. We here also
|
|
|
|
# add the property indicating the plugin directory.
|
|
|
|
dropinPropName = "org.eclipse.equinox.p2.reconciler.dropins.directory";
|
|
|
|
dropinProp = "-D${dropinPropName}=${pluginEnv}/eclipse/dropins";
|
|
|
|
jvmArgsText = stdenv.lib.concatStringsSep "\n" (jvmArgs ++ [dropinProp]);
|
|
|
|
|
|
|
|
# Prepare an eclipse.ini with the plugin directory.
|
|
|
|
origEclipseIni = builtins.readFile "${eclipse}/eclipse/eclipse.ini";
|
|
|
|
eclipseIniFile = writeText "eclipse.ini" ''
|
|
|
|
${origEclipseIni}
|
|
|
|
${jvmArgsText}
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Base the derivation name on the name of the underlying
|
|
|
|
# Eclipse.
|
|
|
|
name = (stdenv.lib.meta.appendToName "with-plugins" eclipse).name;
|
|
|
|
in
|
|
|
|
runCommand name { buildInputs = [ makeWrapper ]; } ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${eclipse}/bin/eclipse $out/bin/eclipse \
|
|
|
|
--add-flags "--launcher.ini ${eclipseIniFile}"
|
|
|
|
|
|
|
|
ln -s ${eclipse}/share $out/
|
|
|
|
'';
|
|
|
|
|
2015-07-26 09:38:04 +01:00
|
|
|
plugins = recurseIntoAttrs (callPackage ./plugins.nix { });
|
|
|
|
|
2009-05-13 14:55:53 +01:00
|
|
|
}
|