From dcd4ea7fad173a9a2f92a71cef7d550a572773f7 Mon Sep 17 00:00:00 2001
From: Marc Weber <marco-oweber@gmx.de>
Date: Tue, 22 Apr 2008 18:26:57 +0000
Subject: [PATCH] Modified eclipse wrapper so that options are possed to the
 real eclipse executable now (so you can extend perm space easily.. )

svn path=/nixpkgs/trunk/; revision=11686
---
 pkgs/applications/editors/eclipse/eclipse_classic.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/applications/editors/eclipse/eclipse_classic.nix b/pkgs/applications/editors/eclipse/eclipse_classic.nix
index 72a4116c57d..2d3b22e476e 100644
--- a/pkgs/applications/editors/eclipse/eclipse_classic.nix
+++ b/pkgs/applications/editors/eclipse/eclipse_classic.nix
@@ -42,7 +42,7 @@ 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
+    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