diff options
author | Marc Weber <marco-oweber@gmx.de> | 2009-09-13 08:54:55 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2009-09-13 08:54:55 +0000 |
commit | c8ee5671cb32da494b62b06e78c1c7c5908ae486 (patch) | |
tree | d111564d613baaa911a78efdeeaf244dcb4a30ea /pkgs/applications/editors/eclipse | |
parent | 8fabb58eeee83eea5371a46c6c248c96664f3f99 (diff) | |
download | nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.gz nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.bz2 nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.lz nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.xz nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.tar.zst nixpkgs-c8ee5671cb32da494b62b06e78c1c7c5908ae486.zip |
commenting Eclipse - use the new eclipseRunner instead
svn path=/nixpkgs/trunk/; revision=17079
Diffstat (limited to 'pkgs/applications/editors/eclipse')
-rw-r--r-- | pkgs/applications/editors/eclipse/runner.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/editors/eclipse/runner.nix b/pkgs/applications/editors/eclipse/runner.nix new file mode 100644 index 00000000000..dccc7b5376f --- /dev/null +++ b/pkgs/applications/editors/eclipse/runner.nix @@ -0,0 +1,32 @@ +args: with args; +stdenv.mkDerivation { + name = "nix-eclipse-runner-script"; + + phases = "installPhase"; + installPhase = '' + ensureDir $out/bin + target=$out/bin/nix-run-eclipse + cat > $target << EOF + #!/bin/sh + export PATH=${jre}/bin:$PATH + export LD_LIBRARY_PATH=${glib}/lib:${gtk}/lib:${libXtst}/lib + # If you run out of XX space try these? -vmargs -Xms512m -Xmx2048m -XX:MaxPermSize=256m + exec "\$@" + EOF + chmod +x $target + ''; + + meta = { + description = "provide environment to run Eclipse"; + longDescription = '' + Is there one distribution providing support for up to date Eclipse installations? + There are various reasons why not. + Installing binaries just works. Get Eclipse binaries form eclipse.org/downloads + install this wrapper then run Eclipse like this: + nix-run-eclipse $PATH_TO_ECLIPSE/eclipse/eclipse + and be happy. Everything works including update sites. + ''; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} |