From 3b1c2058432fcf691e49e202f6a2a2cee90c94df Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Fri, 24 Feb 2006 21:42:57 +0000 Subject: [PATCH] Make eclipse reusable: function of plugins to eclipse svn path=/nixpkgs/trunk/; revision=4887 --- pkgs/system/all-packages-generic.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 1cc4a84193a..4a4f368e17b 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -2100,12 +2100,16 @@ rec { fastStart = true; }; - eclipse = (import ../applications/editors/eclipse) { - inherit fetchurl stdenv makeWrapper jdk; - inherit (gtkLibs) gtk glib; - inherit (xlibs) libXtst; - plugins = [spoofax]; - }; + eclipseSpoofax = + eclipse [spoofax]; + + eclipse = plugins : + (import ../applications/editors/eclipse) { + inherit fetchurl stdenv makeWrapper jdk; + inherit (gtkLibs) gtk glib; + inherit (xlibs) libXtst; + inherit plugins; + }; spoofax = (import ../applications/editors/eclipse/plugins/spoofax) { inherit fetchurl stdenv;