From 9c507f1721d4139fc4e2bf2de08ac383a9173995 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Wed, 13 Oct 2004 14:21:20 +0000 Subject: [PATCH] Added Eclipse. Currently, this is a simple unzip of the binary distribution. Todo 1: create a binary distribution in Nix. Todo 2: build the native libraries in Nix. svn path=/nixpkgs/trunk/; revision=1554 --- pkgs/applications/editors/eclipse/builder.sh | 7 +++++++ pkgs/applications/editors/eclipse/default.nix | 17 +++++++++++++++++ pkgs/system/all-packages-generic.nix | 4 ++++ 3 files changed, 28 insertions(+) create mode 100755 pkgs/applications/editors/eclipse/builder.sh create mode 100644 pkgs/applications/editors/eclipse/default.nix diff --git a/pkgs/applications/editors/eclipse/builder.sh b/pkgs/applications/editors/eclipse/builder.sh new file mode 100755 index 000000000000..7e1895f2feff --- /dev/null +++ b/pkgs/applications/editors/eclipse/builder.sh @@ -0,0 +1,7 @@ +set -e + +. $stdenv/setup + +$unzip/bin/unzip $src +mkdir $out +mv eclipse $out/ diff --git a/pkgs/applications/editors/eclipse/default.nix b/pkgs/applications/editors/eclipse/default.nix new file mode 100644 index 000000000000..86570d90a31e --- /dev/null +++ b/pkgs/applications/editors/eclipse/default.nix @@ -0,0 +1,17 @@ +{fetchurl, stdenv, unzip}: + +let { + body = + stdenv.mkDerivation { + name = "eclipse-sdk-3.0.1"; + builder = ./builder.sh; + src = bindist; + inherit unzip; + }; + + bindist = + fetchurl { + url = http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/R-3.0.1-200409161125/eclipse-SDK-3.0.1-linux-gtk.zip; + md5 = "d0f743c972adf13e71a43b2dc6c9c55b"; + }; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index c1b141dff1fc..9e5947a496d2 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -860,6 +860,10 @@ rec { inherit (xlibs) libXt libXp libXext libX11; }; + eclipse = (import ../applications/editors/eclipse) { + inherit fetchurl stdenv unzip; + }; + emacs = (import ../applications/editors/emacs) { inherit fetchurl stdenv xlibs; };