summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/blockchains/sumokoin.nix
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2019-08-28 10:37:52 -0700
committerWilliam Casarin <jb55@jb55.com>2019-08-29 05:01:42 -0700
commit72682e46546d6d024a29e2fde009372e03b45b9f (patch)
tree4f5c749f3fdff3f182d9f7b005339aa10fd53897 /pkgs/applications/blockchains/sumokoin.nix
parent58fd72f3e996856d5a4ba21ae25f87a82fe3e5dc (diff)
tree: rename altcoins to blockchains
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'pkgs/applications/blockchains/sumokoin.nix')
-rw-r--r--pkgs/applications/blockchains/sumokoin.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/sumokoin.nix b/pkgs/applications/blockchains/sumokoin.nix
new file mode 100644
index 000000000000..026008b2761a
--- /dev/null
+++ b/pkgs/applications/blockchains/sumokoin.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost
+, libunwind, lmdb, miniupnpc }:
+
+stdenv.mkDerivation rec {
+ name = "sumokoin-${version}";
+ version = "0.2.0.0";
+
+ src = fetchFromGitHub {
+ owner = "sumoprojects";
+ repo = "sumokoin";
+ rev = "v${version}";
+ sha256 = "0ndgcawhxh3qb3llrrilrwzhs36qpxv7f53rxgcansbff9b3za6n";
+ };
+
+ nativeBuildInputs = [ cmake ];
+ buildInputs = [ unbound openssl boost libunwind lmdb miniupnpc ];
+
+ postPatch = ''
+ substituteInPlace src/blockchain_db/lmdb/db_lmdb.cpp --replace mdb_size_t size_t
+ '';
+
+ cmakeFlags = [
+ "-DLMDB_INCLUDE=${lmdb}/include"
+ ];
+
+ enableParallelBuilding = true;
+
+ meta = with lib; {
+ description = "Sumokoin is a fork of Monero and a truely fungible cryptocurrency";
+ homepage = "https://www.sumokoin.org/";
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ fpletz ];
+ platforms = platforms.linux;
+ };
+}