summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-09-13 08:54:55 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-09-13 08:54:55 +0000
commitc8ee5671cb32da494b62b06e78c1c7c5908ae486 (patch)
treed111564d613baaa911a78efdeeaf244dcb4a30ea
parent8fabb58eeee83eea5371a46c6c248c96664f3f99 (diff)
downloadnixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.gz
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.bz2
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.lz
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.xz
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.zst
nixlib-c8ee5671cb32da494b62b06e78c1c7c5908ae486.zip
commenting Eclipse - use the new eclipseRunner instead
svn path=/nixpkgs/trunk/; revision=17079
-rw-r--r--pkgs/applications/editors/eclipse/runner.nix32
-rw-r--r--pkgs/top-level/all-packages.nix15
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/editors/eclipse/runner.nix b/pkgs/applications/editors/eclipse/runner.nix
new file mode 100644
index 000000000000..dccc7b5376fd
--- /dev/null
+++ b/pkgs/applications/editors/eclipse/runner.nix
@@ -0,0 +1,32 @@
+args: with args;
+stdenv.mkDerivation {
+  name = "nix-eclipse-runner-script";
+
+  phases = "installPhase";
+  installPhase = ''
+    ensureDir $out/bin
+    target=$out/bin/nix-run-eclipse
+    cat > $target << EOF
+    #!/bin/sh
+    export PATH=${jre}/bin:$PATH
+    export LD_LIBRARY_PATH=${glib}/lib:${gtk}/lib:${libXtst}/lib
+    # If you run out of XX space try these? -vmargs -Xms512m -Xmx2048m -XX:MaxPermSize=256m
+    exec "\$@"
+    EOF
+    chmod +x $target
+  '';
+
+  meta = { 
+    description = "provide environment to run Eclipse";
+    longDescription = ''
+      Is there one distribution providing support for up to date Eclipse installations?
+      There are various reasons why not.
+      Installing binaries just works. Get Eclipse binaries form eclipse.org/downloads
+      install this wrapper then run Eclipse like this:
+      nix-run-eclipse $PATH_TO_ECLIPSE/eclipse/eclipse
+      and be happy. Everything works including update sites.
+    '';
+    maintainers = [args.lib.maintainers.marcweber];
+    platforms = args.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 79f16fc8bd17..30caace7f5eb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6274,6 +6274,20 @@ let
     inherit (xlibs) libX11;
   };
 
+  eclipseRunner = import ../applications/editors/eclipse/runner.nix {
+    inherit stdenv lib jre;
+    inherit (gtkLibs) gtk glib;
+    inherit (xlibs) libXtst;
+  };
+
+  /* commenting out eclipse - Have a look at eclipseRunner - Marc Weber
+     
+    Reason: You can get Eclipse in many prepacked variations on eclipse.org
+    No need to duplicate efforts.
+    To make Equinox p2 work you have to create a local copy of Eclipse anyway (AFAIK).
+    Maybe there is a solution. I don't have time to investigate. I want to prevent
+    people from using old crappy Eclipse versions.
+
   # put something like this into your ~/.nixpkgs/config.nix file
   #eclipse = {
   # plugins = {eclipse, version, plugins } : let p = plugins; in
@@ -6317,6 +6331,7 @@ let
 #   eclipsePlugins = import ../applications/editors/eclipse/plugins.nix {
 #     inherit fetchurl stdenv;
 #   };
+  */
 
   ed = import ../applications/editors/ed {
     inherit fetchurl stdenv;