diff options
author | Eelco Dolstra | 2005-09-26 14:10:04 +0000 |
---|---|---|
committer | Eelco Dolstra | 2005-09-26 14:10:04 +0000 |
commit | ba6556058dd7de2c09b8dcb0e83860abf46a8288 (patch) | |
tree | 18f7a41aead7d00d6b0b96107e3e4a983c76e23f /pkgs/applications | |
parent | ffd49c15dfe87fb99234c810204babed7991d9c8 (diff) |
* Eclipse: add a wrapper in $out/bin.
svn path=/nixpkgs/trunk/; revision=3946
Diffstat (limited to 'pkgs/applications')
-rwxr-xr-x | pkgs/applications/editors/eclipse/builder.sh | 11 | ||||
-rw-r--r-- | pkgs/applications/editors/eclipse/default.nix | 3 |
2 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/applications/editors/eclipse/builder.sh b/pkgs/applications/editors/eclipse/builder.sh index 9a7e56312d74..b703b3bc5ad4 100755 --- a/pkgs/applications/editors/eclipse/builder.sh +++ b/pkgs/applications/editors/eclipse/builder.sh @@ -1,7 +1,8 @@ -set -e +source $stdenv/setup +source $makeWrapper -. $stdenv/setup - -tar zxvf $src -mkdir $out +unpackFile $src +ensureDir $out mv eclipse $out/ + +makeWrapper $out/eclipse/eclipse $out/bin/eclipse diff --git a/pkgs/applications/editors/eclipse/default.nix b/pkgs/applications/editors/eclipse/default.nix index ce0721272190..13e04cd965c4 100644 --- a/pkgs/applications/editors/eclipse/default.nix +++ b/pkgs/applications/editors/eclipse/default.nix @@ -1,4 +1,4 @@ -{fetchurl, stdenv}: +{fetchurl, stdenv, makeWrapper}: let { body = @@ -6,6 +6,7 @@ let { name = "eclipse-sdk-3.1"; builder = ./builder.sh; src = bindist; + inherit makeWrapper; }; bindist = |