From bf627ae0e04256274d07f36e9e3e441e22755c29 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 17 Oct 2020 11:18:15 +0200 Subject: [PATCH 1/3] monero: 0.17.0.1 -> 0.17.1.0 --- pkgs/applications/blockchains/monero/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/blockchains/monero/default.nix b/pkgs/applications/blockchains/monero/default.nix index 935040bc7bb5..7d55a5f6f34c 100644 --- a/pkgs/applications/blockchains/monero/default.nix +++ b/pkgs/applications/blockchains/monero/default.nix @@ -17,25 +17,18 @@ assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ]; stdenv.mkDerivation rec { pname = "monero"; - version = "0.17.0.1"; + version = "0.17.1.0"; src = fetchFromGitHub { owner = "monero-project"; repo = "monero"; rev = "v${version}"; - sha256 = "1v0phvg5ralli4dr09a60nq032xqlci5d6v4zfq8304vgrn1ffgp"; + sha256 = "1cngniv7sndy8r0fcfgk737640k53q3kwd36g891p5igcb985qdw"; fetchSubmodules = true; }; patches = [ ./use-system-libraries.patch - - # This fixes a bug in the monero-gui build system, - # remove it once the PR has been merged - (fetchpatch { - url = "https://github.com/monero-project/monero/pull/6867.patch"; - sha256 = "0nxa6861df1fadrm9bmhqf2g6mljgr4jndsbxqp7g501hv9z51j3"; - }) ]; postPatch = '' From 9bf0008d683fd9373826a7f079d8f0ab3fec6ff3 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 17 Oct 2020 11:18:43 +0200 Subject: [PATCH 2/3] monero-gui: 0.17.0.1 -> 0.17.1.0 --- pkgs/applications/blockchains/monero-gui/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/blockchains/monero-gui/default.nix b/pkgs/applications/blockchains/monero-gui/default.nix index 776d51ca6bd8..43a35b1328bb 100644 --- a/pkgs/applications/blockchains/monero-gui/default.nix +++ b/pkgs/applications/blockchains/monero-gui/default.nix @@ -27,13 +27,13 @@ in stdenv.mkDerivation rec { pname = "monero-gui"; - version = "0.17.0.1"; + version = "0.17.1.0"; src = fetchFromGitHub { owner = "monero-project"; repo = "monero-gui"; rev = "v${version}"; - sha256 = "1i9a3ampppyzsl4sllbqlr3w43sjpb3fdfxhb1j4n49p8g0jzmf3"; + sha256 = "07r78ipv4g3i6z822kq380vi3qwlb958rccsy6lyybkhj9y0rx84"; }; nativeBuildInputs = [ @@ -65,9 +65,6 @@ stdenv.mkDerivation rec { substituteInPlace src/version.js.in \ --replace '@VERSION_TAG_GUI@' '${version}' - # remove this line on the next release - rm cmake/Version.cmake - # use monerod from the monero package substituteInPlace src/daemon/DaemonManager.cpp \ --replace 'QApplication::applicationDirPath() + "' '"${monero}/bin' From 101bb7814be92ec234f8ad860bda2b4656db08c1 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 17 Oct 2020 11:47:07 +0200 Subject: [PATCH 3/3] monero-gui: fix install path --- pkgs/applications/blockchains/monero-gui/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/blockchains/monero-gui/default.nix b/pkgs/applications/blockchains/monero-gui/default.nix index 43a35b1328bb..c079fa88a703 100644 --- a/pkgs/applications/blockchains/monero-gui/default.nix +++ b/pkgs/applications/blockchains/monero-gui/default.nix @@ -75,10 +75,11 @@ stdenv.mkDerivation rec { 'add_subdirectory(monero EXCLUDE_FROM_ALL)' ''; - cmakeFlags = [ - "-DCMAKE_INSTALL_PREFIX=$out/bin" - "-DARCH=${arch}" - ]; + preConfigure = '' + # because $out needs to be expanded + cmakeFlagsArray+=("-DCMAKE_INSTALL_PREFIX=$out/bin") + cmakeFlagsArray+=("-DARCH=${arch}") + ''; desktopItem = makeDesktopItem { name = "monero-wallet-gui";