2018-05-04 22:45:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, boost
|
|
|
|
, db48
|
|
|
|
, fetchurl
|
|
|
|
, libevent
|
|
|
|
, miniupnpc
|
|
|
|
, openssl
|
|
|
|
, pkgconfig
|
|
|
|
, zeromq
|
|
|
|
, zlib
|
2018-05-06 14:15:04 +00:00
|
|
|
, unixtools
|
2018-10-27 21:50:40 +00:00
|
|
|
, python3
|
2018-05-04 22:45:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "particl-core";
|
2020-05-04 03:48:21 +00:00
|
|
|
version = "0.19.1.1";
|
2018-05-04 22:45:24 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz";
|
2020-05-04 03:48:21 +00:00
|
|
|
sha256 = "11y5q2srkh6r2samppjb5mg6hl79y16j2lj1r23p0968vb9c45kl";
|
2018-05-04 22:45:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2018-10-27 21:50:40 +00:00
|
|
|
buildInputs = [ openssl db48 boost zlib miniupnpc libevent zeromq unixtools.hexdump python3 ];
|
2018-05-04 22:45:24 +00:00
|
|
|
|
2018-10-22 19:44:02 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-bench"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2018-10-27 21:50:40 +00:00
|
|
|
] ++ optionals (!doCheck) [
|
|
|
|
"--enable-tests=no"
|
2018-10-22 19:44:02 +00:00
|
|
|
];
|
2018-05-04 22:45:24 +00:00
|
|
|
|
2018-10-27 21:50:40 +00:00
|
|
|
# Always check during Hydra builds
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = "patchShebangs test";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-05-04 22:45:24 +00:00
|
|
|
meta = {
|
|
|
|
description = "Privacy-Focused Marketplace & Decentralized Application Platform";
|
|
|
|
longDescription= ''
|
|
|
|
An open source, decentralized privacy platform built for global person to person eCommerce.
|
2018-10-22 19:44:02 +00:00
|
|
|
RPC daemon and CLI client only.
|
2018-05-04 22:45:24 +00:00
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://particl.io/";
|
2018-05-04 22:45:24 +00:00
|
|
|
maintainers = with maintainers; [ demyanrogozhin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|