22 javafxModules = [ "swing" "controls" "media" "fxml" "graphics" "base" ];
26 "${openjfx21}/modules_src/javafx.${mod}/module-info.java"
27 "${openjfx21}/modules/javafx.${mod}"
28 "${openjfx21}/modules_libs/javafx.${mod}"
30 [ "$out/share/${repo}/*" ];
33 "-cp" (lib.concatStringsSep ":" classpath)
34 "-Djpackage.app-version=$version"
35 "-Dolvid.sqlcipher=true"
37 "-Dolvid.packaged=true"
38 "-Dolvid.multiuser=false"
40 "-Dolvid.version=$version"
41 "-Djava.net.useSystemProxies=true"
42 "-Djava.library.path=$out/lib/"
44 "-XX:+ShowCodeDetailsInExceptionMessages"
45 "--add-opens=java.desktop/java.awt=ALL-UNNAMED"
46 "--add-opens=java.desktop/java.awt.geom=ALL-UNNAMED"
47 "--add-opens=java.desktop/sun.awt.geom=ALL-UNNAMED"
48 "--add-opens=java.base/java.util=ALL-UNNAMED"
49 "--add-opens=java.desktop/javax.swing=ALL-UNNAMED"
50 "--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED"
54 stdenv.mkDerivation (finalAttrs: {
62 url = "https://static.olvid.io/linux/${repo}-${finalAttrs.version}.tar.gz";
63 hash = "sha256-Cej8ei+Dh6yn7ZRZ1DE9ay/KWWLLALhaQ5gNpBw8vDs=";
86 install -dm755 "$out/share/${repo}"
87 tar -xf "$src" -C "$out/share/${repo}" --wildcards --strip-components 3 olvid/lib/app/'*.jar'
89 install -dm755 "$out/lib"
90 tar -xf "$src" -C "$out/lib" --strip-components 4 olvid/lib/runtime/lib/
92 install -dm755 "$out/bin"
93 makeBinaryWrapper ${jdk21}/bin/java $out/bin/${repo} \
94 "''${gappsWrapperArgs[@]}" \
95 --add-flags "${lib.concatStringsSep " " jvmArgs} io.olvid.windows.messenger.start_up.Launcher"
101 description = "Secure french messenger";
102 homepage = "https://www.olvid.io";
103 license = licenses.agpl3Only;
104 mainProgram = "olvid";
105 maintainers = with maintainers; [ rookeur ];
106 platforms = platforms.linux;