@@ -0,0 +1,47 @@
1+{ stdenv
2+, autoconf
3+, automake
4+, autoreconfHook
5+, boost
6+, db48
7+, fetchurl
8+, libevent
9+, libtool
10+, miniupnpc
11+, openssl
12+, pkgconfig
13+, utillinux
14+, zeromq
15+, zlib
16+, withGui
17+}:
18+
19+with stdenv.lib;
20+
21+stdenv.mkDerivation rec {
22+ name = "particl-core-${version}";
23+ version = "0.16.0.4";
24+
25+ src = fetchurl {
26+ url = "https://github.com/particl/particl-core/archive/v${version}.tar.gz";
27+ sha256 = "1yy8pw13rn821jpi1zvzwi3ipxi1bgfxv8g6jz49qlbjzjmjcr68";
28+ };
29+
30+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
31+ buildInputs = [ openssl db48 boost zlib
32+ miniupnpc libevent zeromq ]
33+ ++ optionals stdenv.isLinux [ utillinux ];
34+
35+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
36+
37+ meta = {
38+ description = "Privacy-Focused Marketplace & Decentralized Application Platform";
39+ longDescription= ''
40+ An open source, decentralized privacy platform built for global person to person eCommerce.
41+ '';
42+ homepage = https://particl.io/;
43+ maintainers = with maintainers; [ demyanrogozhin ];
44+ license = licenses.mit;
45+ platforms = platforms.unix;
46+ };
47+}