monero-gui: fix aarch64 build
This commit is contained in:
parent
b5ca332b1d
commit
843c5da500
1 changed files with 11 additions and 1 deletions
|
@ -18,6 +18,13 @@ with stdenv.lib;
|
||||||
|
|
||||||
assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ];
|
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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "monero-gui";
|
pname = "monero-gui";
|
||||||
version = "0.17.0.1";
|
version = "0.17.0.1";
|
||||||
|
@ -71,7 +78,10 @@ stdenv.mkDerivation rec {
|
||||||
'add_subdirectory(monero EXCLUDE_FROM_ALL)'
|
'add_subdirectory(monero EXCLUDE_FROM_ALL)'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out/bin" ];
|
cmakeFlags = [
|
||||||
|
"-DCMAKE_INSTALL_PREFIX=$out/bin"
|
||||||
|
"-DARCH=${arch}"
|
||||||
|
];
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "monero-wallet-gui";
|
name = "monero-wallet-gui";
|
||||||
|
|
Loading…
Reference in a new issue