@@ -1,6 +1,6 @@
11{ lib, stdenv, callPackage, fetchurl
22, python
3−, jdk, jdk8, cmake, libxml2, zlib, python3, ncurses
3+, jdk, cmake, libxml2, zlib, python3, ncurses
44}:
55
66with stdenv.lib;
@@ -138,6 +138,24 @@ let
138138 };
139139 });
140140
141+ buildMps = { name, version, src, license, description, wmClass, ... }:
142+ (mkJetBrainsProduct rec {
143+ inherit name version src wmClass jdk;
144+ product = "MPS";
145+ meta = with stdenv.lib; {
146+ homepage = https://www.jetbrains.com/mps/;
147+ inherit license description;
148+ longDescription = ''
149+ A metaprogramming system which uses projectional editing
150+ which allows users to overcome the limits of language
151+ parsers, and build DSL editors, such as ones with tables and
152+ diagrams.
153+ '';
154+ maintainers = with maintainers; [ rasendubi ];
155+ platforms = platforms.linux;
156+ };
157+ });
158+
141159 buildPhpStorm = { name, version, src, license, description, wmClass, ... }:
142160 (mkJetBrainsProduct {
143161 inherit name version src wmClass jdk;
@@ -243,27 +261,6 @@ let
243261 rm -r jre64
244262 '';
245263 });
246−
247− buildMps = { name, version, src, license, description, wmClass, ... }:
248− (mkJetBrainsProduct rec {
249− inherit name version src wmClass;
250− # MPS does not yet work with jbrsdk11 as of 2019.1.5 (it starts
251− # but is unable to generate any project)
252− jdk = jdk8;
253− product = "MPS";
254− meta = with stdenv.lib; {
255− homepage = https://www.jetbrains.com/mps/;
256− inherit license description;
257− longDescription = ''
258− A metaprogramming system which uses projectional editing
259− which allows users to overcome the limits of language
260− parsers, and build DSL editors, such as ones with tables and
261− diagrams.
262− '';
263− maintainers = with maintainers; [ rasendubi ];
264− platforms = platforms.linux;
265− };
266− });
267264in
268265
269266{
@@ -334,6 +331,19 @@ in
334331 update-channel = "IntelliJ IDEA RELEASE";
335332 };
336333
334+ mps = buildMps rec {
335+ name = "mps-${version}";
336+ version = "2019.2";
337+ description = "Create your own domain-specific language";
338+ license = stdenv.lib.licenses.unfree;
339+ src = fetchurl {
340+ url = "https://download.jetbrains.com/mps/2019.2/MPS-${version}.tar.gz";
341+ sha256 = "0rph3bibj74ddbyrn0az1npn4san4g1alci8nlq4gaqdlcz6zx22";
342+ };
343+ wmClass = "jetbrains-mps";
344+ update-channel = "MPS RELEASE";
345+ };
346+
337347 phpstorm = buildPhpStorm rec {
338348 name = "phpstorm-${version}";
339349 version = "2019.1.3"; /* updated by script */
@@ -412,17 +422,4 @@ in
412422 update-channel = "WebStorm RELEASE";
413423 };
414424
415− mps = buildMps rec {
416− name = "mps-${version}";
417− version = "2019.1.5";
418− description = "Create your own domain-specific language";
419− license = stdenv.lib.licenses.unfree;
420− src = fetchurl {
421− url = "https://download.jetbrains.com/mps/2019.1/MPS-${version}.tar.gz";
422− sha256 = "0bq1gxciw9p9nd2h9vcill8rb6ghkjjj7b0dh812vx75rsfwsvl4";
423− };
424− wmClass = "jetbrains-mps";
425− update-channel = "MPS RELEASE";
426− };
427−
428425}