12 , strip-nondeterminism
19 bisq-launcher = args: writeScript "bisq-launcher" ''
22 # This is just a comment to convince Nix that Tor is a
23 # runtime dependency; The Tor binary is in a *.jar file,
24 # whereas Nix only scans for hashes in uncompressed text.
27 JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:MaxHeapFreeRatio=10 -XX:MinHeapFreeRatio=5 -XX:+UseStringDeduplication ${args}" bisq-desktop-wrapped "$@"
30 bisq-tor = writeScript "bisq-tor" ''
33 exec ${tor}/bin/tor "$@"
36 stdenv.mkDerivation rec {
37 pname = "bisq-desktop";
41 url = "https://github.com/bisq-network/bisq/releases/download/v${version}/Bisq-64bit-${version}.deb";
42 sha256 = "0zzrl7dmd3m7pymwvl68gnjspbpzf1w17bcwr0ipgsszmr35k9rs";
58 exec = "bisq-desktop";
60 desktopName = "Bisq ${version}";
61 genericName = "Decentralized bitcoin exchange";
62 categories = [ "Network" "P2P" ];
67 exec = "bisq-desktop-hidpi";
69 desktopName = "Bisq ${version} (HiDPI)";
70 genericName = "Decentralized bitcoin exchange";
71 categories = [ "Network" "P2P" ];
80 # Replace the embedded Tor binary (which is in a Tar archive)
81 # with one from Nixpkgs.
83 mkdir -p native/linux/x64/
85 tar --sort=name --mtime="@$SOURCE_DATE_EPOCH" -cJf native/linux/x64/tor.tar.xz tor
86 zip -r opt/bisq/lib/app/desktop-${version}-all.jar native
87 strip-nondeterminism opt/bisq/lib/app/desktop-${version}-all.jar
93 mkdir -p $out/lib $out/bin
94 cp opt/bisq/lib/app/desktop-${version}-all.jar $out/lib
96 makeWrapper ${openjdk11}/bin/java $out/bin/bisq-desktop-wrapped \
97 --add-flags "-jar $out/lib/desktop-${version}-all.jar bisq.desktop.app.BisqAppMain"
99 makeWrapper ${bisq-launcher ""} $out/bin/bisq-desktop \
100 --prefix PATH : $out/bin
102 makeWrapper ${bisq-launcher "-Dglass.gtk.uiScale=2.0"} $out/bin/bisq-desktop-hidpi \
103 --prefix PATH : $out/bin
105 for n in 16 24 32 48 64 96 128 256; do
107 convert opt/bisq/lib/Bisq.png -resize $size bisq.png
108 install -Dm644 -t $out/share/icons/hicolor/$size/apps bisq.png
114 passthru.updateScript = ./update.sh;
117 description = "A decentralized bitcoin exchange network";
118 homepage = "https://bisq.network";
119 sourceProvenance = with sourceTypes; [ binaryBytecode ];
120 license = licenses.mit;
121 maintainers = with maintainers; [ juaningan emmanuelrosa ];
122 platforms = [ "x86_64-linux" ];