2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv
|
2018-05-04 23:45:24 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, boost
|
|
|
|
, db48
|
|
|
|
, fetchurl
|
|
|
|
, libevent
|
|
|
|
, miniupnpc
|
|
|
|
, openssl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2018-05-04 23:45:24 +01:00
|
|
|
, 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
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2018-05-04 23:45:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "particl-core";
|
2021-02-03 20:10:54 +00:00
|
|
|
version = "0.19.2.3";
|
2018-05-04 23:45:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz";
|
2021-02-03 20:10:54 +00:00
|
|
|
sha256 = "sha256-nAsQvYWUejSu/4MMIwZhlV5Gjza/Da4jcp6/01lppvg=";
|
2018-05-04 23:45:24 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config 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;
|
|
|
|
};
|
|
|
|
}
|