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 {
|
|
|
|
name = "particl-core-${version}";
|
2018-10-27 23:50:40 +02:00
|
|
|
version = "0.17.0.2";
|
2018-05-05 00:45:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz";
|
2018-10-22 21:44:02 +02:00
|
|
|
sha256 = "0bkxdayl0jrfhgz8qzqqpwzv0yavz3nwsn6c8k003jnbcw65fkhx";
|
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
|
|
|
'';
|
|
|
|
homepage = https://particl.io/;
|
|
|
|
maintainers = with maintainers; [ demyanrogozhin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|