about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/dashpay.nix
blob: 03dcd6cb54e6de4f6fa055af5886c832f14a6e99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ fetchFromGitHub, stdenv, pkgconfig, autoreconfHook
, openssl, db48, boost, zlib, miniupnpc
, qrencode, glib, protobuf, yasm, libevent
, utillinux
, enable_Upnp ? false
, disable_Wallet ? false
, disable_Daemon ? false }:

with stdenv.lib;
stdenv.mkDerivation rec {
  pname = "dashpay";
  version = "0.12.2.3";

  src = fetchFromGitHub {
    owner = "dashpay";
    repo= "dash";
    rev = "v${version}";
    sha256 = "0l1gcj2xf2bal9ph9y11x8yd28fd25f55f48xbm45bfw3ij7nbaa";
  };

  nativeBuildInputs = [ pkgconfig autoreconfHook ];
  buildInputs = [ glib openssl db48 yasm boost zlib libevent
                  miniupnpc protobuf qrencode utillinux ];


  configureFlags = [ "--with-boost-libdir=${boost.out}/lib --with-gui=no" ]
                    ++ optional enable_Upnp "--enable-upnp-default"
                    ++ optional disable_Wallet "--disable-wallet"
                    ++ optional disable_Daemon "--disable-daemon"
                    ;

  meta = {
    description = "A decentralized key/value registration and transfer system";
    longDescription = ''
      Dash (DASH) is an open sourced, privacy-centric digital currency
      with instant transactions.  It allows you to keep your finances
      private as you make transactions without waits, similar to cash.
    '';
    homepage = https://www.dash.org;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.unix;
  };
}