diff options
author | William Casarin <jb55@jb55.com> | 2019-08-28 10:37:52 -0700 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2019-08-29 05:01:42 -0700 |
commit | 72682e46546d6d024a29e2fde009372e03b45b9f (patch) | |
tree | 4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/monero | |
parent | 58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff) | |
download | nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.gz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.bz2 nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.lz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.xz nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.tar.zst nixpkgs-72682e46546d6d024a29e2fde009372e03b45b9f.zip |
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/monero')
-rw-r--r-- | pkgs/applications/blockchains/monero/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/monero/default.nix b/pkgs/applications/blockchains/monero/default.nix new file mode 100644 index 00000000000..f351c9fa504 --- /dev/null +++ b/pkgs/applications/blockchains/monero/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchgit +, cmake, pkgconfig, git +, boost, miniupnpc, openssl, unbound, cppzmq +, zeromq, pcsclite, readline, libsodium, hidapi +, python3Packages +, CoreData, IOKit, PCSC +}: + +assert stdenv.isDarwin -> IOKit != null; + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "monero-${version}"; + version = "0.14.1.0"; + + src = fetchgit { + url = "https://github.com/monero-project/monero.git"; + rev = "v${version}"; + sha256 = "1asa197fad81jfv12qgaa7y7pdr1r1pda96m9pvivkh4v30cx0nh"; + }; + + nativeBuildInputs = [ cmake pkgconfig git ]; + + buildInputs = [ + boost miniupnpc openssl unbound + cppzmq zeromq pcsclite readline + libsodium hidapi + python3Packages.protobuf + ] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ]; + + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=Release" + "-DBUILD_GUI_DEPS=ON" + "-DReadline_ROOT_DIR=${readline.dev}" + ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF"; + + hardeningDisable = [ "fortify" ]; + + meta = { + description = "Private, secure, untraceable currency"; + homepage = https://getmonero.org/; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ ehmry rnhmjoj ]; + }; +} |