blob: 5a0c31a33a1cc7cccb4bfde5d79e484f5ccf28d9 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, boost179
, openssl
, libsodium
, libunwind
, lmdb
, unbound
, zeromq
}:
stdenv.mkDerivation rec {
pname = "sumokoin";
version = "0.8.1.0";
src = fetchFromGitHub {
owner = "sumoprojects";
repo = "sumokoin";
rev = "v${version}";
hash = "sha256-CHZ6hh60U6mSR68CYDKMWTYyX1koF4gA7YrA1P5f0Dk=";
};
# disable POST_BUILD
postPatch = ''
sed -i 's/if (UNIX)/if (0)/g' src/utilities/*_utilities/CMakeLists.txt
'';
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
boost179
openssl
libsodium
libunwind
lmdb
unbound
zeromq
];
env.CXXFLAGS = "-include cstdint";
# cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
hardeningDisable = [ "format" ];
meta = with lib; {
description = "Fork of Monero and a truely fungible cryptocurrency";
homepage = "https://www.sumokoin.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ wegank ];
platforms = platforms.linux;
};
}
|