summary refs log tree commit diff
path: root/pkgs/applications/blockchains/sumokoin/default.nix
blob: ee817b581953722dd7fc9d75f53a1d65163ddca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost
, libunwind, lmdb, miniupnpc }:

stdenv.mkDerivation rec {
  pname = "sumokoin";
  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"
  ];

  meta = with lib; {
    description = "A fork of Monero and a truely fungible cryptocurrency";
    homepage = "https://www.sumokoin.org/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ fpletz ];
    platforms = platforms.linux;
  };
}