lol
1{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost
2, libunwind, lmdb, miniupnpc }:
3
4stdenv.mkDerivation rec {
5 pname = "sumokoin";
6 version = "0.2.0.0";
7
8 src = fetchFromGitHub {
9 owner = "sumoprojects";
10 repo = "sumokoin";
11 rev = "v${version}";
12 sha256 = "0ndgcawhxh3qb3llrrilrwzhs36qpxv7f53rxgcansbff9b3za6n";
13 };
14
15 nativeBuildInputs = [ cmake ];
16 buildInputs = [ unbound openssl boost libunwind lmdb miniupnpc ];
17
18 postPatch = ''
19 substituteInPlace src/blockchain_db/lmdb/db_lmdb.cpp --replace mdb_size_t size_t
20 '';
21
22 cmakeFlags = [
23 "-DLMDB_INCLUDE=${lmdb}/include"
24 ];
25
26 meta = with lib; {
27 description = "A fork of Monero and a truely fungible cryptocurrency";
28 homepage = "https://www.sumokoin.org/";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ fpletz ];
31 platforms = platforms.linux;
32 };
33}