diff --git a/pkgs/applications/blockchains/sumokoin/default.nix b/pkgs/applications/blockchains/sumokoin/default.nix index 8a193d906ece..0c3a3d239599 100644 --- a/pkgs/applications/blockchains/sumokoin/default.nix +++ b/pkgs/applications/blockchains/sumokoin/default.nix @@ -1,33 +1,56 @@ -{ lib, stdenv, fetchFromGitHub, cmake, unbound, openssl, boost -, libunwind, lmdb, miniupnpc }: +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, boost +, openssl +, libsodium +, libunwind +, lmdb +, unbound +, zeromq +}: stdenv.mkDerivation rec { pname = "sumokoin"; - version = "0.2.0.0"; + version = "0.8.1.0"; src = fetchFromGitHub { owner = "sumoprojects"; repo = "sumokoin"; rev = "v${version}"; - sha256 = "0ndgcawhxh3qb3llrrilrwzhs36qpxv7f53rxgcansbff9b3za6n"; + hash = "sha256-CHZ6hh60U6mSR68CYDKMWTYyX1koF4gA7YrA1P5f0Dk="; }; - nativeBuildInputs = [ cmake ]; - buildInputs = [ unbound openssl boost libunwind lmdb miniupnpc ]; - + # disable POST_BUILD postPatch = '' - substituteInPlace src/blockchain_db/lmdb/db_lmdb.cpp --replace mdb_size_t size_t + sed -i 's/if (UNIX)/if (0)/g' src/utilities/*_utilities/CMakeLists.txt ''; - cmakeFlags = [ - "-DLMDB_INCLUDE=${lmdb}/include" + nativeBuildInputs = [ + cmake + pkg-config ]; + buildInputs = [ + boost + openssl + libsodium + libunwind + lmdb + unbound + zeromq + ]; + + # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security] + hardeningDisable = [ "format" ]; + meta = with lib; { description = "A fork of Monero and a truely fungible cryptocurrency"; homepage = "https://www.sumokoin.org/"; license = licenses.bsd3; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ wegank ]; platforms = platforms.linux; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 83de0c8a798f..b344cd081b69 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34023,7 +34023,9 @@ with pkgs; stellar-core = callPackage ../applications/blockchains/stellar-core { }; - sumokoin = callPackage ../applications/blockchains/sumokoin { boost = boost165; }; + sumokoin = callPackage ../applications/blockchains/sumokoin { + boost = boost17x; + }; solana-testnet = callPackage ../applications/blockchains/solana { inherit (darwin.apple_sdk.frameworks) IOKit Security AppKit;