nixpkgs/pkgs/applications/blockchains/particl-core/default.nix
Sergei Trofimovich cd37349f82 particl-core: 23.0.3.0 -> 23.2.7.0
Without the change the build against `gcc-13` fails on `master` as
https://hydra.nixos.org/build/249150842:

    In file included from ./util/strencodings.h:14,
                     from util/strencodings.cpp:6:
    ./util/string.h💯50: error: 'uint8_t' was not declared in this scope
      100 |                                 const std::array<uint8_t, PREFIX_LEN>& prefix)
          |                                                  ^~~~~~~
2024-02-20 23:05:06 +00:00

56 lines
1.3 KiB
Nix

{ lib
, stdenv
, autoreconfHook
, boost
, db48
, fetchFromGitHub
, libevent
, miniupnpc
, openssl
, pkg-config
, zeromq
, zlib
, unixtools
, python3
}:
stdenv.mkDerivation rec {
pname = "particl-core";
version = "23.2.7.0";
src = fetchFromGitHub {
owner = "particl";
repo = "particl-core";
rev = "v${version}";
hash = "sha256-RxkLt+7u+r5jNwEWiArTUpZ8ykYwWtvIDFXTSKhGN/w=";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ openssl db48 boost zlib miniupnpc libevent zeromq unixtools.hexdump python3 ];
configureFlags = [
"--disable-bench"
"--with-boost-libdir=${boost.out}/lib"
] ++ lib.optionals (!doCheck) [
"--enable-tests=no"
];
# Always check during Hydra builds
doCheck = true;
preCheck = "patchShebangs test";
enableParallelBuilding = true;
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = "Privacy-Focused Marketplace & Decentralized Application Platform";
longDescription = ''
An open source, decentralized privacy platform built for global person to person eCommerce.
RPC daemon and CLI client only.
'';
homepage = "https://particl.io/";
maintainers = with maintainers; [ demyanrogozhin ];
license = licenses.mit;
platforms = platforms.unix;
};
}