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