git.iko.soy/typeable/nixpkgs
on master help sign in
eclipse-plugin-cup: init at 1.0.0.201412081321
commita654e783c65bcdfcfb701ddf168949bc29e884e1 authorJosé Romildo Malaquias <malaquias@gmail.com> dateThu 28 Jan 2016, 17:21 (11 years ago) parent9e56b18
1 file changed+39
pkgs/applications/editors/eclipse/plugins.nix+39
pkgs/applications/editors/eclipse/plugins.nix+39
@@ -212,6 +212,45 @@ rec {
212212 };
213213 };
214214
215+ cup = buildEclipsePluginBase rec {
216+ name = "cup-${version}";
217+ version = "1.0.0.201412081321";
218+
219+ srcFeature = fetchurl {
220+ url = "http://www2.in.tum.de/projects/cup/eclipse/features/CupEclipsePluginFeature_${version}.jar";
221+ sha256 = "353513445f77ed144687bafc20ab85dc31f2f95ffdc47f102ab773ab0b7afb8b";
222+ };
223+
224+ srcPlugin1 = fetchurl {
225+ url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/CupReferencedLibraries_${version}.jar";
226+ sha256 = "082b5ed8730ad065efaac6ea2812dae15669ae74a49778911125b171bea41187";
227+ };
228+
229+ srcPlugin2 = fetchurl {
230+ url = "http://www2.in.tum.de/projects/cup/eclipse/plugins/de.tum.in.www2.CupPlugin_${version}.jar";
231+ sha256 = "6b67937fa11944b0330173a9d8564a19eccd705e76b96291d80077a1d7344939";
232+ };
233+
234+ srcs = [ srcFeature srcPlugin1 srcPlugin2 ];
235+
236+ phases = [ "installPhase" ];
237+
238+ installPhase = ''
239+ dropinDir="$out/eclipse/dropins/${name}"
240+ mkdir -p $dropinDir/features
241+ unzip ${srcFeature} -d $dropinDir/features/
242+ mkdir -p $dropinDir/plugins
243+ cp -v ${srcPlugin1} ${srcPlugin2} $dropinDir/plugins/
244+ '';
245+
246+ meta = with stdenv.lib; {
247+ homepage = http://www2.cs.tum.edu/projects/cup/eclipse.php;
248+ description = "IDE for developing CUP based parsers";
249+ platforms = platforms.all;
250+ maintainers = [ maintainers.romildo ];
251+ };
252+ };
253+
215254 eclemma = buildEclipseUpdateSite rec {
216255 name = "eclemma-${version}";
217256 version = "2.3.2.201409141915";