Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IntelliJ IDEA CE version 11. #89

Closed
wants to merge 13 commits into from
22 changes: 22 additions & 0 deletions pkgs/applications/editors/intellij-idea/builder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
source $stdenv/setup

export PATH=$ant/bin:$jdk/bin:$PATH

set -e

tar -jxvf $src
cd ideaIC-111.69

ant build

mkdir -p $out

tar --strip-components=1 -zxvf out/artifacts/ideaIC-111.SNAPSHOT.tar.gz -C $out

patchelf --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" $out/bin/${notifierToPatch}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could omit the notifierToPatch attribute and use "$out"/bin/fsnotifier* instead.


# Create desktop item.
mkdir -p $out/share/applications
cp $out/bin/idea_CE128.png $out/share/applications/
cp ${desktopItem}/share/applications/* $out/share/applications/

31 changes: 31 additions & 0 deletions pkgs/applications/editors/intellij-idea/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv, fetchurl, patchelf, makeDesktopItem, ant, jdk } :

stdenv.mkDerivation rec {
name = "intellij-idea-ce-11";
description = "IntelliJ IDEA Community Edition version 11.1.69";

src = fetchurl {
url = http://download.jetbrains.com/idea/ideaIC-11-src.tar.bz2;
sha256 = "0wyq4n8gz473kvxz9n8l16c0chscqvj95k4jdbga9b60n59987vr";
};

builder = ./builder.sh;

desktopItem = makeDesktopItem {
name = "IntelliJ-IDEA-CE";
exec = "idea.sh";
icon = "idea_CE128.png";
comment = "IntelliJ IDEA Community Edition";
desktopName = "IntelliJ IDEA CE";
genericName = "IntelliJ IDEA Community Edition";
categories = "Application;Development;";
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent using two spaces and don't try to align function calls within the call, as this wrapps your code way too far to the right.
http://hydra.nixos.org/build/3009964/download/2/manual/#chap-conventions

An example for this case:

  desktopItem = makeDesktopItem {   
    name = "IntelliJ-IDEA-CE";
    exec = "idea.sh";
    icon = "idea_CE128.png";
    comment = "IntelliJ IDEA Community Edition";
    desktopName = "IntelliJ IDEA CE";
    genericName = "IntelliJ IDEA Community Edition";
    categories = "Application;Development;";
  };


# TODO(corey): I'm confused on how to provide both the architecture's dynamic linker path.
notifierToPatch = if stdenv.system == "x86_64-linux"
then "fsnotifier64"
else "fsnotifier";

inherit ant jdk;
}

4 changes: 2 additions & 2 deletions pkgs/development/compilers/dev86/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ stdenv.mkDerivation {
name = "dev86-0.16.18";

src = fetchurl {
url = http://www.debath.co.uk/dev86/Dev86src-0.16.18.tar.gz;
sha256 = "1wcg2x8i2fq7kqgazx2il3qfmikyi4kfb23vm45yxlwq72l55604";
url = http://www.debath.co.uk/dev86/Dev86src-0.16.19.tar.gz;
sha256 = "03nhp0bswyzrqqva1jzdlmnz8jimyzr5kkv282gbdql5ra3qnf9k";
};

makeFlags = "PREFIX=$(out)";
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/scala/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
rm bin/*.bat
patchShebangs bin
mv * $out
'';

Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7089,6 +7089,8 @@ let
inherit (pythonPackages) lxml;
};

intellij_idea_ce_11 = callPackage ../applications/editors/intellij-idea { };

ion3 = callPackage ../applications/window-managers/ion-3 {
lua = lua5;
};
Expand Down