Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
80 lines
1.7 KiB
Nix
80 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
autoreconfHook,
|
|
boost,
|
|
db48,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
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=";
|
|
};
|
|
|
|
patches = [
|
|
# upnp: fix build with miniupnpc 2.2.8
|
|
(fetchpatch2 {
|
|
url = "https://github.com/bitcoin/bitcoin/commit/8acdf66540834b9f9cf28f16d389e8b6a48516d5.patch?full_index=1";
|
|
hash = "sha256-oDvHUvwAEp0LJCf6QBESn38Bu359TcPpLhvuLX3sm6M=";
|
|
})
|
|
];
|
|
|
|
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.hostPlatform.isLinux && stdenv.hostPlatform.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;
|
|
};
|
|
}
|