@@ -1,4 +1,4 @@
1−{ stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
1+{ lib, stdenv, callPackage, fetchurl, makeDesktopItem, makeWrapper, patchelf
22, coreutils, gnugrep, which, git, python, unzip, p7zip
33, androidsdk, jdk
44}:
@@ -6,10 +6,12 @@
66assert stdenv.isLinux;
77
88let
9− mkIdeaProduct = callPackage ./common.nix { };
9+ mkJetBrainsProduct = callPackage ./common.nix { };
10+
11+ # Sorted alphabetically
1012
1113 buildClion = { name, version, src, license, description, wmClass }:
12− (mkIdeaProduct rec {
14+ (mkJetBrainsProduct rec {
1315 inherit name version src wmClass jdk;
1416 product = "CLion";
1517 meta = with stdenv.lib; {
@@ -24,72 +26,77 @@ let
2426 };
2527 });
2628
27− buildIdea = { name, version, src, license, description, wmClass }:
28− (mkIdeaProduct rec {
29+ buildDataGrip = { name, version, src, license, description, wmClass }:
30+ (mkJetBrainsProduct {
2931 inherit name version src wmClass jdk;
30− product = "IDEA";
32+ product = "DataGrip";
3133 meta = with stdenv.lib; {
32− homepage = "https://www.jetbrains.com/idea/";
34+ homepage = "https://www.jetbrains.com/datagrip/";
3335 inherit description license;
3436 longDescription = ''
35− IDE for Java SE, Groovy & Scala development Powerful
36− environment for building Google Android apps Integration
37− with JUnit, TestNG, popular SCMs, Ant & Maven.
37+ DataGrip is a new IDE from JetBrains built for database admins.
38+ It allows you to quickly migrate and refactor relational databases,
39+ construct efficient, statically checked SQL queries and much more.
3840 '';
39− maintainers = with maintainers; [ edwtjo ];
41+ maintainers = with maintainers; [ loskutov ];
4042 platforms = platforms.linux;
4143 };
4244 });
4345
44− buildRubyMine = { name, version, src, license, description, wmClass }:
45− (mkIdeaProduct rec {
46+ buildGogland = { name, version, src, license, description, wmClass }:
47+ (mkJetBrainsProduct {
4648 inherit name version src wmClass jdk;
47− product = "RubyMine";
49+ product = "Gogland";
4850 meta = with stdenv.lib; {
49− homepage = "https://www.jetbrains.com/ruby/";
51+ homepage = "https://www.jetbrains.com/go/";
5052 inherit description license;
51− longDescription = description;
52− maintainers = with maintainers; [ edwtjo ];
53+ longDescription = ''
54+ Gogland is the codename for a new commercial IDE by JetBrains
55+ aimed at providing an ergonomic environment for Go development.
56+ The new IDE extends the IntelliJ platform with the coding assistance
57+ and tool integrations specific for the Go language
58+ '';
59+ maintainers = [ maintainers.miltador ];
5360 platforms = platforms.linux;
5461 };
5562 });
5663
57− buildPhpStorm = { name, version, src, license, description, wmClass }:
58− (mkIdeaProduct {
64+ buildIdea = { name, version, src, license, description, wmClass }:
65+ (mkJetBrainsProduct rec {
5966 inherit name version src wmClass jdk;
60− product = "PhpStorm";
67+ product = "IDEA";
6168 meta = with stdenv.lib; {
62− homepage = "https://www.jetbrains.com/phpstorm/";
69+ homepage = "https://www.jetbrains.com/idea/";
6370 inherit description license;
6471 longDescription = ''
65− PhpStorm provides an editor for PHP, HTML and JavaScript
66− with on-the-fly code analysis, error prevention and
67− automated refactorings for PHP and JavaScript code.
72+ IDE for Java SE, Groovy & Scala development Powerful
73+ environment for building Google Android apps Integration
74+ with JUnit, TestNG, popular SCMs, Ant & Maven.
6875 '';
69− maintainers = with maintainers; [ schristo ];
76+ maintainers = with maintainers; [ edwtjo ];
7077 platforms = platforms.linux;
7178 };
7279 });
7380
74− buildWebStorm = { name, version, src, license, description, wmClass }:
75− (mkIdeaProduct {
81+ buildPhpStorm = { name, version, src, license, description, wmClass }:
82+ (mkJetBrainsProduct {
7683 inherit name version src wmClass jdk;
77− product = "WebStorm";
84+ product = "PhpStorm";
7885 meta = with stdenv.lib; {
79− homepage = "https://www.jetbrains.com/webstorm/";
86+ homepage = "https://www.jetbrains.com/phpstorm/";
8087 inherit description license;
8188 longDescription = ''
82− WebStorm provides an editor for HTML, JavaScript (incl. Node.js),
83− and CSS with on-the-fly code analysis, error prevention and
84− automated refactorings for JavaScript code.
89+ PhpStorm provides an editor for PHP, HTML and JavaScript
90+ with on-the-fly code analysis, error prevention and
91+ automated refactorings for PHP and JavaScript code.
8592 '';
86− maintainers = with maintainers; [ abaldeau ];
93+ maintainers = with maintainers; [ schristo ];
8794 platforms = platforms.linux;
8895 };
8996 });
9097
9198 buildPycharm = { name, version, src, license, description, wmClass }:
92− (mkIdeaProduct rec {
99+ (mkJetBrainsProduct rec {
93100 inherit name version src wmClass jdk;
94101 product = "PyCharm";
95102 meta = with stdenv.lib; {
@@ -115,47 +122,101 @@ let
115122 propagatedUserEnvPkgs = [ python ];
116123 };
117124
118− buildDataGrip = { name, version, src, license, description, wmClass }:
119− (mkIdeaProduct {
125+ buildRider = { name, version, src, license, description, wmClass }:
126+ lib.overrideDerivation (mkJetBrainsProduct rec {
120127 inherit name version src wmClass jdk;
121− product = "DataGrip";
128+ product = "Rider";
122129 meta = with stdenv.lib; {
123− homepage = "https://www.jetbrains.com/datagrip/";
130+ homepage = "https://www.jetbrains.com/rider/";
124131 inherit description license;
125132 longDescription = ''
126− DataGrip is a new IDE from JetBrains built for database admins.
127− It allows you to quickly migrate and refactor relational databases,
128− construct efficient, statically checked SQL queries and much more.
133+ JetBrains Rider is a new .NET IDE based on the IntelliJ
134+ platform and ReSharper. Rider supports .NET Core,
135+ .NET Framework and Mono based projects. This lets you
136+ develop a wide array of applications including .NET desktop
137+ apps, services and libraries, Unity games, ASP.NET and
138+ ASP.NET Core web applications.
129139 '';
130− maintainers = with maintainers; [ loskutov ];
140+ maintainers = [ maintainers.miltador ];
141+ platforms = platforms.linux;
142+ };
143+ }) (attrs: {
144+ patchPhase = attrs.patchPhase + ''
145+ # Patch built-in mono for ReSharperHost to start successfully
146+ interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2)
147+ patchelf --set-interpreter "$interpreter" lib/ReSharperHost/linux-x64/mono/bin/mono-sgen
148+ '';
149+ });
150+
151+ buildRubyMine = { name, version, src, license, description, wmClass }:
152+ (mkJetBrainsProduct rec {
153+ inherit name version src wmClass jdk;
154+ product = "RubyMine";
155+ meta = with stdenv.lib; {
156+ homepage = "https://www.jetbrains.com/ruby/";
157+ inherit description license;
158+ longDescription = description;
159+ maintainers = with maintainers; [ edwtjo ];
160+ platforms = platforms.linux;
161+ };
162+ });
163+
164+ buildWebStorm = { name, version, src, license, description, wmClass }:
165+ (mkJetBrainsProduct {
166+ inherit name version src wmClass jdk;
167+ product = "WebStorm";
168+ meta = with stdenv.lib; {
169+ homepage = "https://www.jetbrains.com/webstorm/";
170+ inherit description license;
171+ longDescription = ''
172+ WebStorm provides an editor for HTML, JavaScript (incl. Node.js),
173+ and CSS with on-the-fly code analysis, error prevention and
174+ automated refactorings for JavaScript code.
175+ '';
176+ maintainers = with maintainers; [ abaldeau ];
131177 platforms = platforms.linux;
132178 };
133179 });
180+
134181in
135182
136183{
184+ # Sorted alphabetically
185+
137186 clion = buildClion rec {
138187 name = "clion-${version}";
139− version = "2016.3.3";
188+ version = "2017.1";
140189 description = "C/C++ IDE. New. Intelligent. Cross-platform";
141190 license = stdenv.lib.licenses.unfree;
142191 src = fetchurl {
143192 url = "https://download.jetbrains.com/cpp/CLion-${version}.tar.gz";
144− sha256 = "1zziyg0y51lfybflq83qwd94wcypkv4gh0cdkwfybbk4yidpnz05";
193+ sha256 = "00fc023ca56f2781864cddc7bd5c2897d837d1db17dd8f987abe046ed4df3ca5";
145194 };
146195 wmClass = "jetbrains-clion";
147196 };
148197
149− clion1 = buildClion rec {
150− name = "clion-${version}";
151− version = "1.2.5";
152− description = "C/C++ IDE. New. Intelligent. Cross-platform";
198+ datagrip = buildDataGrip rec {
199+ name = "datagrip-${version}";
200+ version = "2017.1";
201+ description = "Your Swiss Army Knife for Databases and SQL";
153202 license = stdenv.lib.licenses.unfree;
154203 src = fetchurl {
155− url = "https://download.jetbrains.com/cpp/${name}.tar.gz";
156− sha256 = "0ll1rcnnbd1if6x5rp3qw35lvp5zdzmvyg9n1lha89i34xiw36jp";
204+ url = "https://download.jetbrains.com/datagrip/${name}.tar.gz";
205+ sha256 = "91ee6a1e43d75a45ae51829835e457da85262410d89e617324d0239ba5625dfa";
157206 };
158− wmClass = "jetbrains-clion";
207+ wmClass = "jetbrains-datagrip";
208+ };
209+
210+ gogland = buildGogland rec {
211+ name = "gogland-${version}";
212+ version = "171.3780.106";
213+ description = "Up and Coming Go IDE";
214+ license = stdenv.lib.licenses.unfree;
215+ src = fetchurl {
216+ url = "https://download.jetbrains.com/go/${name}.tar.gz";
217+ sha256 = "cbe84d07fdec6425d8ac63b0ecd5e04148299c1c0c6d05751523aaaa9360110b";
218+ };
219+ wmClass = "jetbrains-gogland";
159220 };
160221
161222 idea14-community = buildIdea rec {
@@ -218,40 +279,28 @@ in
218279 wmClass = "jetbrains-idea";
219280 };
220281
221− ruby-mine = buildRubyMine rec {
222− name = "ruby-mine-${version}";
223− version = "2016.3.2";
224− description = "The Most Intelligent Ruby and Rails IDE";
225− license = stdenv.lib.licenses.unfree;
226− src = fetchurl {
227− url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
228− sha256 = "1fqlrvhlk09z8nx68qv4nqs5n8ldia3lixsl6r04gsfyl1a69sb6";
229− };
230− wmClass = "jetbrains-rubymine";
231− };
232−
233− ruby-mine7 = buildRubyMine rec {
234− name = "ruby-mine-${version}";
235− version = "7.1.5";
236− description = "The Most Intelligent Ruby and Rails IDE";
282+ phpstorm = buildPhpStorm rec {
283+ name = "phpstorm-${version}";
284+ version = "2017.1";
285+ description = "Professional IDE for Web and PHP developers";
237286 license = stdenv.lib.licenses.unfree;
238287 src = fetchurl {
239− url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
240− sha256 = "04fcxj1xlap9mxmwf051s926p2darlj5kwl4lms2gy5d8b2lhd5l";
288+ url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
289+ sha256 = "1ynffm5x8fqq2r71rr9rbvdifbwbvbhqb2x1hkyy4az38gxal1bm";
241290 };
242− wmClass = "jetbrains-rubymine";
291+ wmClass = "jetbrains-phpstorm";
243292 };
244293
245− ruby-mine8 = buildRubyMine rec {
246− name = "ruby-mine-${version}";
247− version = "8.0.4";
248− description = "The Most Intelligent Ruby and Rails IDE";
294+ phpstorm10 = buildPhpStorm rec {
295+ name = "phpstorm-${version}";
296+ version = "10.0.4";
297+ description = "Professional IDE for Web and PHP developers";
249298 license = stdenv.lib.licenses.unfree;
250299 src = fetchurl {
251− url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
252− sha256 = "0hipxib7377232w1jbf8h98bmh0djkllsrq3lq0w3fdxqglma43a";
300+ url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
301+ sha256 = "0fi042zvjpg5pn2mnhj3bbrdkl1b9vmhpf2l6ca4nr0rhjjv7dsm";
253302 };
254− wmClass = "jetbrains-rubymine";
303+ wmClass = "jetbrains-phpstorm";
255304 };
256305
257306 pycharm-community = buildPycharm rec {
@@ -278,28 +327,52 @@ in
278327 wmClass = "jetbrains-pycharm";
279328 };
280329
281− phpstorm = buildPhpStorm rec {
282− name = "phpstorm-${version}";
330+ rider = buildRider rec {
331+ name = "rider-${version}";
332+ version = "171.3655.1246";
333+ description = "A cross-platform .NET IDE based on the IntelliJ platform and ReSharper";
334+ license = stdenv.lib.licenses.unfree;
335+ src = fetchurl {
336+ url = "https://download.jetbrains.com/resharper/riderRS-${version}.tar.gz";
337+ sha256 = "90f9f8f1919e0f1dad42387f1a308483448323b089c13c409f3dd4d52992266b";
338+ };
339+ wmClass = "jetbrains-rider";
340+ };
341+
342+ ruby-mine = buildRubyMine rec {
343+ name = "ruby-mine-${version}";
283344 version = "2017.1";
284− description = "Professional IDE for Web and PHP developers";
345+ description = "The Most Intelligent Ruby and Rails IDE";
285346 license = stdenv.lib.licenses.unfree;
286347 src = fetchurl {
287− url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
288− sha256 = "1ynffm5x8fqq2r71rr9rbvdifbwbvbhqb2x1hkyy4az38gxal1bm";
348+ url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
349+ sha256 = "6c27f43ddc385ffba2cb2f011b80ab46d9b128d0fccf3b4ea43272fe36401a3a";
289350 };
290− wmClass = "jetbrains-phpstorm";
351+ wmClass = "jetbrains-rubymine";
291352 };
292353
293− phpstorm10 = buildPhpStorm rec {
294− name = "phpstorm-${version}";
295− version = "10.0.4";
296− description = "Professional IDE for Web and PHP developers";
354+ ruby-mine7 = buildRubyMine rec {
355+ name = "ruby-mine-${version}";
356+ version = "7.1.5";
357+ description = "The Most Intelligent Ruby and Rails IDE";
297358 license = stdenv.lib.licenses.unfree;
298359 src = fetchurl {
299− url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
300− sha256 = "0fi042zvjpg5pn2mnhj3bbrdkl1b9vmhpf2l6ca4nr0rhjjv7dsm";
360+ url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
361+ sha256 = "04fcxj1xlap9mxmwf051s926p2darlj5kwl4lms2gy5d8b2lhd5l";
301362 };
302− wmClass = "jetbrains-phpstorm";
363+ wmClass = "jetbrains-rubymine";
364+ };
365+
366+ ruby-mine8 = buildRubyMine rec {
367+ name = "ruby-mine-${version}";
368+ version = "8.0.4";
369+ description = "The Most Intelligent Ruby and Rails IDE";
370+ license = stdenv.lib.licenses.unfree;
371+ src = fetchurl {
372+ url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
373+ sha256 = "0hipxib7377232w1jbf8h98bmh0djkllsrq3lq0w3fdxqglma43a";
374+ };
375+ wmClass = "jetbrains-rubymine";
303376 };
304377
305378 webstorm = buildWebStorm rec {
@@ -337,16 +410,4 @@ in
337410 };
338411 wmClass = "jetbrains-webstorm";
339412 };
340−
341− datagrip = buildDataGrip rec {
342− name = "datagrip-${version}";
343− version = "2016.3.2";
344− description = "Your Swiss Army Knife for Databases and SQL";
345− license = stdenv.lib.licenses.unfree;
346− src = fetchurl {
347− url = "https://download.jetbrains.com/datagrip/${name}.tar.gz";
348− sha256 = "19njb6i7nl6szql7cy99jmig59b304c6im3988p1dd8dj2j6csv3";
349− };
350− wmClass = "jetbrains-datagrip";
351− };
352413}