diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2020-10-08 02:20:00 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2020-10-08 07:50:56 +0200 |
commit | 843c5da500a0bf94473b134b53041fe4b1d63d13 (patch) | |
tree | 1f92ef05715604064cd99738c5c444da1f078989 /pkgs/applications/blockchains/monero-gui | |
parent | b5ca332b1db0e3bfcb1bdc119b37e2500ec8259b (diff) |
monero-gui: fix aarch64 build
Diffstat (limited to 'pkgs/applications/blockchains/monero-gui')
-rw-r--r-- | pkgs/applications/blockchains/monero-gui/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/blockchains/monero-gui/default.nix b/pkgs/applications/blockchains/monero-gui/default.nix index f9e07e5c5e5a..776d51ca6bd8 100644 --- a/pkgs/applications/blockchains/monero-gui/default.nix +++ b/pkgs/applications/blockchains/monero-gui/default.nix @@ -18,6 +18,13 @@ with stdenv.lib; assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ]; +let + arch = if stdenv.isx86_64 then "x86-64" + else if stdenv.isi686 then "i686" + else if stdenv.isAarch64 then "armv8-a" + else throw "unsupported architecture"; +in + stdenv.mkDerivation rec { pname = "monero-gui"; version = "0.17.0.1"; @@ -71,7 +78,10 @@ stdenv.mkDerivation rec { 'add_subdirectory(monero EXCLUDE_FROM_ALL)' ''; - cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out/bin" ]; + cmakeFlags = [ + "-DCMAKE_INSTALL_PREFIX=$out/bin" + "-DARCH=${arch}" + ]; desktopItem = makeDesktopItem { name = "monero-wallet-gui"; |