14 stripJavaArchivesHook,
22 url = "https://violetlib.org/release/vaqua/9/VAqua9.jar";
23 sha256 = "cd0b82df8e7434c902ec873364bf3e9a3e6bef8b59cbf42433130d71bf1a779c";
27 name = "jna-5.10.0.zip";
28 url = "https://github.com/java-native-access/jna/archive/5.10.0.zip";
29 sha256 = "B5CakOQ8225xNsk2TMV8CbK3RcsLlb+pHzjaY5JNwg0=";
33 name = "flatlaf-2.4.jar";
34 url = "mirror://maven/com/formdev/flatlaf/2.4/flatlaf-2.4.jar";
35 sha256 = "NVMYiCd+koNCJ6X3EiRx1Aj+T5uAMSJ9juMmB5Os+zc=";
39 name = "org.eclipse.lsp4j-0.19.0.jar";
40 url = "mirror://maven/org/eclipse/lsp4j/org.eclipse.lsp4j/0.19.0/org.eclipse.lsp4j-0.19.0.jar";
41 sha256 = "sha256-1DI5D9KW+GL4gT1qjwVZveOl5KVOEjt6uXDwsFzi8Sg=";
44 lsp4j-jsonrpc = fetchurl {
45 name = "org.eclipse.lsp4j.jsonrpc-0.19.0.jar";
46 url = "mirror://maven/org/eclipse/lsp4j/org.eclipse.lsp4j.jsonrpc/0.19.0/org.eclipse.lsp4j.jsonrpc-0.19.0.jar";
47 sha256 = "sha256-ozYTkvv7k0psCeX/PbSM3/Bl17qT3upX3trt65lmM9I=";
51 name = "gson-2.9.1.jar";
52 url = "mirror://maven/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar";
53 sha256 = "sha256-N4U04znm5tULFzb7Ort28cFdG+P0wTzsbVNkEuI9pgM=";
60 .${stdenv.hostPlatform.parsed.cpu.name} or stdenv.hostPlatform.parsed.cpu.name;
62 stdenv.mkDerivation rec {
66 src = fetchFromGitHub {
69 rev = "processing-${buildNumber}-${version}";
70 sha256 = "sha256-SzQemZ6iZ9o89/doV8YMv7DmyPSDyckJl3oyxJyfrm0=";
95 tar --checkpoint=10000 -czf build/linux/jdk-17.0.8-${arch}.tgz ${jdk}
96 cp ${ant}/lib/ant/lib/{ant.jar,ant-launcher.jar} app/lib/
98 ln -s ${jogl}/share/java/* core/library/
99 ln -s ${vaqua} app/lib/VAqua9.jar
100 ln -s ${flatlaf} app/lib/flatlaf.jar
101 ln -s ${lsp4j} java/mode/org.eclipse.lsp4j.jar
102 ln -s ${lsp4j-jsonrpc} java/mode/org.eclipse.lsp4j.jsonrpc.jar
103 ln -s ${gson} java/mode/gson.jar
104 unzip -qo ${jna} -d app/lib/
105 mv app/lib/{jna-5.10.0/dist/jna.jar,}
106 mv app/lib/{jna-5.10.0/dist/jna-platform.jar,}
107 ln -sf ${batik}/* java/libraries/svg/library/
108 cp java/libraries/svg/library/share/java/batik-all-${batik.version}.jar java/libraries/svg/library/batik.jar
109 echo "tarring ffmpeg"
110 tar --checkpoint=10000 -czf build/shared/tools/MovieMaker/ffmpeg-5.0.1.gz ${ffmpeg}
122 mkdir -p $out/share/applications/
123 cp -dp build/linux/${pname}.desktop $out/share/applications/
124 cp -dpr build/linux/work $out/share/${pname}
125 rmdir $out/share/${pname}/java
126 ln -s ${jdk} $out/share/${pname}/java
127 makeWrapper $out/share/${pname}/processing $out/bin/processing \
128 ''${gappsWrapperArgs[@]} \
129 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
130 --prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd
131 makeWrapper $out/share/${pname}/processing-java $out/bin/processing-java \
132 ''${gappsWrapperArgs[@]} \
133 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \
134 --prefix _JAVA_OPTIONS " " -Dawt.useSystemAAFontSettings=lcd
140 description = "Language and IDE for electronic arts";
141 homepage = "https://processing.org";
142 license = with licenses; [
146 platforms = platforms.linux;
147 maintainers = with maintainers; [ evan-goode ];