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

46 lines
1.2 KiB
Nix
Raw Normal View History

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