nixpkgs-suyu/pkgs/applications/blockchains/monero/default.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2019-11-09 18:47:33 +01:00
{ stdenv, fetchFromGitHub
, cmake, pkgconfig
2020-06-18 23:41:04 +02:00
, boost, miniupnpc, openssl, unbound
2018-12-09 15:48:55 +01:00
, zeromq, pcsclite, readline, libsodium, hidapi
2020-04-28 05:29:39 +02:00
, pythonProtobuf, randomx, rapidjson, libusb-compat-0_1
2018-04-04 21:33:45 +02:00
, CoreData, IOKit, PCSC
2018-01-26 23:17:38 +01:00
}:
2018-03-31 04:07:28 +02:00
assert stdenv.isDarwin -> IOKit != null;
2018-01-26 23:17:38 +01:00
stdenv.mkDerivation rec {
pname = "monero";
2020-07-14 18:38:44 +02:00
version = "0.16.0.1";
2019-11-09 18:47:33 +01:00
src = fetchFromGitHub {
owner = "monero-project";
repo = "monero";
rev = "v${version}";
2020-07-14 18:38:44 +02:00
sha256 = "0n2cviqm8radpynx70fc0819k1xknjc58cvb4whlc49ilyvh8ky6";
2019-11-09 18:47:33 +01:00
fetchSubmodules = true;
2018-01-26 23:17:38 +01:00
};
2019-11-09 18:47:33 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
2018-01-26 23:17:38 +01:00
2018-03-31 04:07:28 +02:00
buildInputs = [
boost miniupnpc openssl unbound
2020-06-18 23:41:04 +02:00
zeromq pcsclite readline
2019-11-10 15:44:56 +01:00
libsodium hidapi randomx rapidjson
2020-04-28 05:29:39 +02:00
pythonProtobuf libusb-compat-0_1
2019-11-09 18:47:33 +01:00
] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
2018-01-26 23:17:38 +01:00
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
2020-06-18 23:41:04 +02:00
"-DUSE_DEVICE_TREZOR=ON"
2018-01-26 23:17:38 +01:00
"-DBUILD_GUI_DEPS=ON"
2018-03-28 06:53:07 +02:00
"-DReadline_ROOT_DIR=${readline.dev}"
2019-11-09 18:47:33 +01:00
] ++ stdenv.lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
2018-01-26 23:17:38 +01:00
2019-11-09 18:47:33 +01:00
meta = with stdenv.lib; {
2018-01-26 23:17:38 +01:00
description = "Private, secure, untraceable currency";
homepage = "https://getmonero.org/";
2018-01-26 23:17:38 +01:00
license = licenses.bsd3;
platforms = platforms.all;
2018-03-31 04:07:28 +02:00
maintainers = with maintainers; [ ehmry rnhmjoj ];
2018-01-26 23:17:38 +01:00
};
}