nixpkgs/pkgs/applications/blockchains/sumokoin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.0 KiB
Nix
Raw Normal View History

2023-01-01 22:51:53 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, boost
, openssl
, libsodium
, libunwind
, lmdb
, unbound
, zeromq
}:
2018-02-06 03:25:37 +00:00
stdenv.mkDerivation rec {
pname = "sumokoin";
2023-01-01 22:51:53 +00:00
version = "0.8.1.0";
2018-02-06 03:25:37 +00:00
src = fetchFromGitHub {
owner = "sumoprojects";
repo = "sumokoin";
rev = "v${version}";
2023-01-01 22:51:53 +00:00
hash = "sha256-CHZ6hh60U6mSR68CYDKMWTYyX1koF4gA7YrA1P5f0Dk=";
2018-02-06 03:25:37 +00:00
};
2023-01-01 22:51:53 +00:00
# disable POST_BUILD
2018-02-06 03:25:37 +00:00
postPatch = ''
2023-01-01 22:51:53 +00:00
sed -i 's/if (UNIX)/if (0)/g' src/utilities/*_utilities/CMakeLists.txt
2018-02-06 03:25:37 +00:00
'';
2023-01-01 22:51:53 +00:00
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
boost
openssl
libsodium
libunwind
lmdb
unbound
zeromq
2018-02-06 03:25:37 +00:00
];
2023-01-01 22:51:53 +00:00
# cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
hardeningDisable = [ "format" ];
2018-02-06 03:25:37 +00:00
meta = with lib; {
description = "A fork of Monero and a truely fungible cryptocurrency";
2018-02-06 03:25:37 +00:00
homepage = "https://www.sumokoin.org/";
license = licenses.bsd3;
2023-01-01 22:51:53 +00:00
maintainers = with maintainers; [ wegank ];
2018-02-06 03:25:37 +00:00
platforms = platforms.linux;
};
}