From 64652c5dfc8678fabfe6ec24307a2c390e456157 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 6 Mar 2008 00:49:31 +0000 Subject: [PATCH] modified launch script so that you can copy the whole eclipse store directory to be able to use the update manager - maybe there is a better way? svn path=/nixpkgs/trunk/; revision=10972 --- pkgs/applications/editors/eclipse/eclipse_classic.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/editors/eclipse/eclipse_classic.nix b/pkgs/applications/editors/eclipse/eclipse_classic.nix index 9dba9e6a791..72a4116c57d 100644 --- a/pkgs/applications/editors/eclipse/eclipse_classic.nix +++ b/pkgs/applications/editors/eclipse/eclipse_classic.nix @@ -1,3 +1,7 @@ +# Note, if you want to install plugins using the update manager you should +# copy the store path to a local directory and chown -R $USER yourcopy +# Then start your local copy + args: with args; let arch = if stdenv.system == "x86_64-linux" then "x86_64" else if stdenv.system == "i686-linux" then "x86" @@ -38,7 +42,10 @@ args.stdenv.mkDerivation rec { makeWrapper \$out/eclipse/eclipse \$out/bin/eclipse \\ --prefix PATH \":\" \"\$jdk/bin\" \\ --prefix LD_LIBRARY_PATH \":\" \"\$rpath\" + sed -e 's=exec.*=exec \$(dirname $0)/../eclipse/eclipse=' -i \$out/bin/eclipse "; + # using dirname so that eclipse still runs after copying the whole store + # directory somewhere else (so that you can use the update manager 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;