mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
e9cd8a2d60
* pivx: 3.2.0 -> 3.2.2
* altcoins.pivx: 3.2.2 -> 3.3.0
Furthermore, this fixes 2542928
* pivx: 3.3.0 -> 3.4.0
Added `test_pivx` as test ran by nixpkgs
* Update pkgs/applications/blockchains/pivx.nix
Thanks to @lassulus for fixing this typo!
Co-Authored-By: Lassulus <github@lassul.us>
65 lines
2.4 KiB
Nix
65 lines
2.4 KiB
Nix
{ fetchFromGitHub, stdenv, pkgconfig, autoreconfHook, wrapQtAppsHook ? null
|
|
, openssl_1_0_2, db48, boost, zlib, miniupnpc, gmp
|
|
, qrencode, glib, protobuf, yasm, libevent
|
|
, utillinux, qtbase ? null, qttools ? null
|
|
, enableUpnp ? false
|
|
, disableWallet ? false
|
|
, disableDaemon ? false
|
|
, withGui ? false }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
name = "pivx-${version}";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PIVX-Project";
|
|
repo= "PIVX";
|
|
rev = "v${version}";
|
|
sha256 = "1fqccdqhbwyvix0ihhbgg2w048i6bhfmazr36h2cn4j65n1fgmi2";
|
|
};
|
|
|
|
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" ]
|
|
++ optional enableUpnp "--enable-upnp-default"
|
|
++ 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"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
doChecks = true;
|
|
postBuild = ''
|
|
mkdir -p $out/share/applications $out/share/icons
|
|
cp contrib/debian/pivx-qt.desktop $out/share/applications/
|
|
cp share/pixmaps/*128.png $out/share/icons/
|
|
'';
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/test_pivx
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An open source crypto-currency focused on fast private transactions";
|
|
longDescription = ''
|
|
PIVX is an MIT licensed, open source, blockchain-based cryptocurrency with
|
|
ultra fast transactions, low fees, high network decentralization, and
|
|
Zero Knowledge cryptography proofs for industry-leading transaction anonymity.
|
|
'';
|
|
license = licenses.mit;
|
|
homepage = https://www.dash.org;
|
|
maintainers = with maintainers; [ wucke13 ];
|
|
platforms = platforms.unix;
|
|
# TODO
|
|
# upstream doesn't support newer openssl versions
|
|
# https://github.com/PIVX-Project/PIVX/issues/748
|
|
# openssl_1_0_2 should be replaced with openssl ASAP
|
|
};
|
|
}
|