Merge pull request #12657 from romildo/new-eclipse-plugin-cup

eclipse-plugin-cup: init at 1.0.0.201412081321

+39
+39
pkgs/applications/editors/eclipse/plugins.nix
··· 212 }; 213 }; 214 215 eclemma = buildEclipseUpdateSite rec { 216 name = "eclemma-${version}"; 217 version = "2.3.2.201409141915";
··· 212 }; 213 }; 214 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 + 254 eclemma = buildEclipseUpdateSite rec { 255 name = "eclemma-${version}"; 256 version = "2.3.2.201409141915";