git.iko.soy/typeable/nixpkgs
on master help sign in
eclipse-plugins-jsonedit: init at 1.0.1

Also init the bundle `antlr-runtime_4_5` at 4.5.3 because it is needed by the `jsonedit` plugin.

commit663d827b770cba1d62b4d8ca0177d658278c8fa8 authorRobert Helgesson <robert@rycee.net> dateThu 18 Jan 2018, 20:08 (9 years ago) parent3a70f21
1 file changed+61
pkgs/applications/editors/eclipse/plugins.nix+61
pkgs/applications/editors/eclipse/plugins.nix+61
@@ -137,6 +137,29 @@ rec {
137137 };
138138 };
139139
140+ antlr-runtime_4_5 = buildEclipsePluginBase rec {
141+ name = "antlr-runtime-4.5.3";
142+
143+ src = fetchurl {
144+ url = "http://www.antlr.org/download/${name}.jar";
145+ sha256 = "0lm78i2annlczlc2cg5xvby0g1dyl0sh1y5xc2pymjlmr67a1g4k";
146+ };
147+
148+ buildCommand = ''
149+ dropinDir="$out/eclipse/dropins/"
150+ mkdir -p $dropinDir
151+ cp -v $src $dropinDir/${name}.jar
152+ '';
153+
154+ meta = with stdenv.lib; {
155+ description = "A powerful parser generator for processing structured text or binary files";
156+ homepage = http://www.antlr.org/;
157+ license = licenses.bsd3;
158+ platforms = platforms.all;
159+ maintainers = [ maintainers.rycee ];
160+ };
161+ };
162+
140163 anyedittools = buildEclipsePlugin rec {
141164 name = "anyedit-${version}";
142165 version = "2.7.1.201709201439";
@@ -395,6 +418,44 @@ rec {
395418 };
396419 };
397420
421+ jsonedit = buildEclipsePlugin rec {
422+ name = "jsonedit-${version}";
423+ version = "1.0.1";
424+
425+ srcFeature = fetchurl {
426+ url = "https://boothen.github.io/Json-Eclipse-Plugin/features/jsonedit-feature_${version}.jar";
427+ sha256 = "19221409wzcsrlm2fqf6mrxzb5ip1x6y5ba8anw788p7aaz1w30k";
428+ };
429+
430+ srcPlugins =
431+ let
432+ fetch = { n, h }:
433+ fetchurl {
434+ url = "https://boothen.github.io/Json-Eclipse-Plugin/plugins/jsonedit-${n}_${version}.jar";
435+ sha256 = h;
436+ };
437+ in
438+ map fetch [
439+ { n = "core"; h = "05ipjbh9yz97zhqaqq6cja3zz44n0dn40ms13qnlgf4bxyaf0f6w"; }
440+ { n = "editor"; h = "1i71rh2fd5hsx6gygnafz2gjz4hlb0ckazxn0maxmnlx4p5apjql"; }
441+ { n = "folding"; h = "13p8vqdna23ln82w1jgchm59375f1ky0p2b1v7jih55yfhw1ymam"; }
442+ { n = "model"; h = "0llswhsd58f0rjb9canjncavq4z7q8zidn26yl5gradbbz580p6w"; }
443+ { n = "outline"; h = "1rs8g0iv2kklbl7j0p6nr26m6ii89yyr9bpi05mh21xva40pzkl5"; }
444+ { n = "preferences"; h = "0vs074ahhiba7if43ryf9m8xd81sqj9grppy0pzcnkkdkbk870n0"; }
445+ { n = "text"; h = "0nqpzjw8hhvh9jlpldpmcmg83a170wjdabgsvjq207j12jkvfiqq"; }
446+ ];
447+
448+ propagatedBuildInputs = [ antlr-runtime_4_5 ];
449+
450+ meta = with stdenv.lib; {
451+ description = "Adds support for JSON files to Eclipse";
452+ homepage = https://github.com/boothen/Json-Eclipse-Plugin;
453+ license = licenses.epl10;
454+ platforms = platforms.all;
455+ maintainers = [ maintainers.rycee ];
456+ };
457+ };
458+
398459 jdt = buildEclipseUpdateSite rec {
399460 name = "jdt-${version}";
400461 version = "4.7.2";