summary refs log tree commit diff
path: root/pkgs/applications/blockchains/monero
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-16 00:13:16 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-07-16 01:26:53 +0200
commit6d1dd6af0420953ab628df75fa8cefb471af7a2b (patch)
treee99537ecfd9e805f4b2b86ed25454ce29884c028 /pkgs/applications/blockchains/monero
parent0c98c6bbc43daa8af7554a3efe1983c0c096d979 (diff)
downloadnixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar.gz
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar.bz2
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar.lz
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar.xz
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.tar.zst
nixpkgs-6d1dd6af0420953ab628df75fa8cefb471af7a2b.zip
monero: cleanup
Diffstat (limited to 'pkgs/applications/blockchains/monero')
-rw-r--r--pkgs/applications/blockchains/monero/default.nix16
1 files changed, 4 insertions, 12 deletions
diff --git a/pkgs/applications/blockchains/monero/default.nix b/pkgs/applications/blockchains/monero/default.nix
index 2a12bfe872b..7dd2e569021 100644
--- a/pkgs/applications/blockchains/monero/default.nix
+++ b/pkgs/applications/blockchains/monero/default.nix
@@ -4,17 +4,9 @@
 , zeromq, pcsclite, readline, libsodium, hidapi
 , randomx, rapidjson
 , CoreData, IOKit, PCSC
-, trezorSupport ? true
-,   libusb1  ? null
-,   protobuf ? null
-,   python3  ? null
+, trezorSupport ? true, libusb1, protobuf, python3
 }:
 
-with lib;
-
-assert stdenv.isDarwin -> IOKit != null;
-assert trezorSupport -> all (x: x!=null) [ libusb1 protobuf python3 ];
-
 stdenv.mkDerivation rec {
   pname = "monero";
   version = "0.17.2.0";
@@ -45,8 +37,8 @@ stdenv.mkDerivation rec {
     zeromq pcsclite readline
     libsodium hidapi randomx rapidjson
     protobuf
-  ] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ]
-    ++ optionals trezorSupport [ libusb1 protobuf python3 ];
+  ] ++ lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ]
+    ++ lib.optionals trezorSupport [ libusb1 protobuf python3 ];
 
   cmakeFlags = [
     "-DCMAKE_BUILD_TYPE=Release"
@@ -54,7 +46,7 @@ stdenv.mkDerivation rec {
     "-DBUILD_GUI_DEPS=ON"
     "-DReadline_ROOT_DIR=${readline.dev}"
     "-DRandomX_ROOT_DIR=${randomx}"
-  ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
+  ] ++ lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
 
   outputs = [ "out" "source" ];