2018-05-05 00:45:24 +02:00
|
|
|
{ stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, boost
|
|
|
|
, db48
|
|
|
|
, fetchurl
|
|
|
|
, libevent
|
|
|
|
, miniupnpc
|
|
|
|
, openssl
|
|
|
|
, pkgconfig
|
|
|
|
, zeromq
|
|
|
|
, zlib
|
2018-05-06 16:15:04 +02:00
|
|
|
, unixtools
|
2018-10-27 23:50:40 +02:00
|
|
|
, python3
|
2018-05-05 00:45:24 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "particl-core";
|
2020-05-04 05:48:21 +02:00
|
|
|
version = "0.19.1.1";
|
2018-05-05 00:45:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz";
|
2020-05-04 05:48:21 +02:00
|
|
|
sha256 = "11y5q2srkh6r2samppjb5mg6hl79y16j2lj1r23p0968vb9c45kl";
|
2018-05-05 00:45:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2018-10-27 23:50:40 +02:00
|
|
|
buildInputs = [ openssl db48 boost zlib miniupnpc libevent zeromq unixtools.hexdump python3 ];
|
2018-05-05 00:45:24 +02:00
|
|
|
|
2018-10-22 21:44:02 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-bench"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2018-10-27 23:50:40 +02:00
|
|
|
] ++ optionals (!doCheck) [
|
|
|
|
"--enable-tests=no"
|
2018-10-22 21:44:02 +02:00
|
|
|
];
|
2018-05-05 00:45:24 +02:00
|
|
|
|
2018-10-27 23:50:40 +02:00
|
|
|
# Always check during Hydra builds
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = "patchShebangs test";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-05-05 00:45:24 +02: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 21:44:02 +02:00
|
|
|
RPC daemon and CLI client only.
|
2018-05-05 00:45:24 +02:00
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://particl.io/";
|
2018-05-05 00:45:24 +02:00
|
|
|
maintainers = with maintainers; [ demyanrogozhin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|