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

48 lines
1.2 KiB
Nix
Raw Normal View History

2018-09-03 23:13:46 +00:00
{ stdenv, fetchgit
2018-05-09 09:20:38 +00:00
, cmake, pkgconfig, git
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-07-15 09:14:00 +00:00
, python3Packages
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;
with stdenv.lib;
2018-01-26 22:17:38 +00:00
stdenv.mkDerivation rec {
pname = "monero";
2019-06-16 00:43:29 +00:00
version = "0.14.1.0";
2018-01-26 22:17:38 +00:00
2018-09-03 23:13:46 +00:00
src = fetchgit {
url = "https://github.com/monero-project/monero.git";
2018-01-26 22:17:38 +00:00
rev = "v${version}";
2019-07-03 19:44:08 +00:00
sha256 = "1asa197fad81jfv12qgaa7y7pdr1r1pda96m9pvivkh4v30cx0nh";
2018-01-26 22:17:38 +00:00
};
2018-03-28 04:53:07 +00:00
nativeBuildInputs = [ cmake pkgconfig git ];
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
2018-12-09 14:48:55 +00:00
libsodium hidapi
2019-07-15 09:14:00 +00:00
python3Packages.protobuf
2018-04-04 19:33:45 +00:00
] ++ 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}"
2018-09-03 23:13:46 +00:00
] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
2018-01-26 22:17:38 +00:00
2018-03-28 04:53:07 +00:00
hardeningDisable = [ "fortify" ];
2018-01-26 22:17:38 +00:00
2018-03-31 02:07:28 +00:00
meta = {
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
};
}