@@ -18,6 +18,13 @@ with stdenv.lib;
1818
1919assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ];
2020
21+let
22+ arch = if stdenv.isx86_64 then "x86-64"
23+ else if stdenv.isi686 then "i686"
24+ else if stdenv.isAarch64 then "armv8-a"
25+ else throw "unsupported architecture";
26+in
27+
2128stdenv.mkDerivation rec {
2229 pname = "monero-gui";
2330 version = "0.17.0.1";
@@ -71,7 +78,10 @@ stdenv.mkDerivation rec {
7178 'add_subdirectory(monero EXCLUDE_FROM_ALL)'
7279 '';
7380
74− cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out/bin" ];
81+ cmakeFlags = [
82+ "-DCMAKE_INSTALL_PREFIX=$out/bin"
83+ "-DARCH=${arch}"
84+ ];
7585
7686 desktopItem = makeDesktopItem {
7787 name = "monero-wallet-gui";