git.iko.soy/typeable/nixpkgs
on master help sign in
monero-gui: fix aarch64 build
commit843c5da500a0bf94473b134b53041fe4b1d63d13 authorrnhmjoj <rnhmjoj@inventati.org> dateThu 8 Oct 2020, 02:20 (6 years ago) parentb5ca332
1 file changed+11−1
pkgs/applications/blockchains/monero-gui/default.nix+11−1
pkgs/applications/blockchains/monero-gui/default.nix+11−1
@@ -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";