From 59fe3e87c32e13f02e84924c3153e0bbd61a6fc6 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 8 Oct 2020 00:03:11 +0200 Subject: [PATCH] monero: export patched sources This is needed to build monero-gui without duplicating code. --- pkgs/applications/blockchains/monero/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/blockchains/monero/default.nix b/pkgs/applications/blockchains/monero/default.nix index f424624cc29..5b666e92ae8 100644 --- a/pkgs/applications/blockchains/monero/default.nix +++ b/pkgs/applications/blockchains/monero/default.nix @@ -5,9 +5,9 @@ , randomx, rapidjson , CoreData, IOKit, PCSC , trezorSupport ? true - , libusb1 ? null - , protobuf ? null - , python3 ? null +, libusb1 ? null +, protobuf ? null +, python3 ? null }: with stdenv.lib; @@ -32,6 +32,8 @@ stdenv.mkDerivation rec { postPatch = '' # remove vendored libraries rm -r external/{miniupnp,randomx,rapidjson,unbound} + # export patched source for monero-gui + cp -r . $source ''; nativeBuildInputs = [ cmake pkgconfig ]; @@ -52,6 +54,8 @@ stdenv.mkDerivation rec { "-DRandomX_ROOT_DIR=${randomx}" ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF"; + outputs = [ "out" "source" ]; + meta = with stdenv.lib; { description = "Private, secure, untraceable currency"; homepage = "https://getmonero.org/";