Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

46 строки
1.2 KiB

  1. { stdenv, fetchFromGitHub
  2. , cmake, pkgconfig
  3. , boost, miniupnpc, openssl, unbound, cppzmq
  4. , zeromq, pcsclite, readline, libsodium, hidapi
  5. , pythonProtobuf, randomx, rapidjson, libusb-compat-0_1
  6. , CoreData, IOKit, PCSC
  7. }:
  8. assert stdenv.isDarwin -> IOKit != null;
  9. stdenv.mkDerivation rec {
  10. pname = "monero";
  11. version = "0.15.0.1";
  12. src = fetchFromGitHub {
  13. owner = "monero-project";
  14. repo = "monero";
  15. rev = "v${version}";
  16. sha256 = "0sypa235lf2bbib4b71xpaw39h9304slgsvnsz8wmy9fq1zx009m";
  17. fetchSubmodules = true;
  18. };
  19. nativeBuildInputs = [ cmake pkgconfig ];
  20. buildInputs = [
  21. boost miniupnpc openssl unbound
  22. cppzmq zeromq pcsclite readline
  23. libsodium hidapi randomx rapidjson
  24. pythonProtobuf libusb-compat-0_1
  25. ] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
  26. cmakeFlags = [
  27. "-DCMAKE_BUILD_TYPE=Release"
  28. "-DBUILD_GUI_DEPS=ON"
  29. "-DReadline_ROOT_DIR=${readline.dev}"
  30. ] ++ stdenv.lib.optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
  31. meta = with stdenv.lib; {
  32. description = "Private, secure, untraceable currency";
  33. homepage = "https://getmonero.org/";
  34. license = licenses.bsd3;
  35. platforms = platforms.all;
  36. maintainers = with maintainers; [ ehmry rnhmjoj ];
  37. };
  38. }