12 , stripJavaArchivesHook
20 bisq-launcher = args: writeScript "bisq-launcher" ''
23 # This is just a comment to convince Nix that Tor is a
24 # runtime dependency; The Tor binary is in a *.jar file,
25 # whereas Nix only scans for hashes in uncompressed text.
28 classpath=@out@/lib/desktop.jar:@out@/lib/*
30 exec "${openjdk11}/bin/java" -Djpackage.app-version=@version@ -XX:MaxRAM=8g -Xss1280k -XX:+UseG1GC -XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5 -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true -classpath $classpath ${args} bisq.desktop.app.BisqAppMain "$@"
33 bisq-tor = writeScript "bisq-tor" ''
36 exec ${tor}/bin/tor "$@"
39 stdenv.mkDerivation rec {
40 pname = "bisq-desktop";
44 url = "https://github.com/bisq-network/bisq/releases/download/v${version}/Bisq-64bit-${version}.deb";
45 sha256 = "1wqzgxsm9p6lh0bmvw0byaxx1r5v64d024jf1pg9mykb1dnnx0wy";
62 exec = "bisq-desktop";
64 desktopName = "Bisq ${version}";
65 genericName = "Decentralized bitcoin exchange";
66 categories = [ "Network" "P2P" ];
71 exec = "bisq-desktop-hidpi";
73 desktopName = "Bisq ${version} (HiDPI)";
74 genericName = "Decentralized bitcoin exchange";
75 categories = [ "Network" "P2P" ];
84 # Replace the embedded Tor binary (which is in a Tar archive)
85 # with one from Nixpkgs.
87 mkdir -p native/linux/x64/
89 tar --sort=name --mtime="@$SOURCE_DATE_EPOCH" -cJf native/linux/x64/tor.tar.xz tor
90 tor_jar_file=$(find ./opt/bisq/lib/app -name "tor-binary-linux64-*.jar")
91 zip -r $tor_jar_file native
97 mkdir -p $out $out/bin
98 cp -r opt/bisq/lib/app $out/lib
100 install -D -m 777 ${bisq-launcher ""} $out/bin/bisq-desktop
101 substituteAllInPlace $out/bin/bisq-desktop
103 install -D -m 777 ${bisq-launcher "-Dglass.gtk.uiScale=2.0"} $out/bin/bisq-desktop-hidpi
104 substituteAllInPlace $out/bin/bisq-desktop-hidpi
106 for n in 16 24 32 48 64 96 128 256; do
108 convert opt/bisq/lib/Bisq.png -resize $size bisq.png
109 install -Dm644 -t $out/share/icons/hicolor/$size/apps bisq.png
115 passthru.updateScript = ./update.sh;
118 description = "Decentralized bitcoin exchange network";
119 homepage = "https://bisq.network";
120 changelog = "https://github.com/bisq-network/bisq/releases/tag/v${version}";
121 sourceProvenance = with sourceTypes; [ binaryBytecode ];
122 license = licenses.mit;
123 maintainers = with maintainers; [ juaningan emmanuelrosa ];
124 platforms = [ "x86_64-linux" ];
125 # Requires OpenJFX 11 or 16, which are both EOL.