anchor.diff:                      ++ optional disableWallet "--disable-wallet"
                       ++ optional disableDaemon "--disable-daemon"
                       ++ optionals withGui [ "--with-gui=yes"
  -                                           "--with-unsupported-ssl" # TODO remove this ASAP
                                              "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
                                            ];
     
  
positive.code: with stdenv.lib;
  stdenv.mkDerivation rec {
    name = "pivx-${version}";
    version = "4.0.2";
  
    src = fetchFromGitHub {
      owner = "PIVX-Project";
      repo= "PIVX";
      rev = "v${version}";
      sha256 = "12lnp318k8dx1sar24zfmv2imnzs30srssnlpb31y7hcxhz0wpc5";
    };
  
    nativeBuildInputs = [ pkgconfig autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ];
    buildInputs = [ glib gmp openssl_1_0_2 db48 yasm boost zlib libevent miniupnpc protobuf utillinux ]
                    ++ optionals withGui [ qtbase qttools qrencode ];
  
    configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
  
negative.code:     homepage = "https://www.dash.org";
      maintainers = with maintainers; [ wucke13 ];
      platforms = platforms.unix;
    };
  }
  