git.iko.soy/typeable/nixpkgs
on master help sign in
pivx: init at 3.2.0
commit4a99f769262adc7d1c45ebe9db5c8a1dbdf6de8b authorwucke13 <wucke13@gmail.com> dateMon 11 Feb 2019, 00:31 (8 years ago) parentc44d5a0
2 files changed+58−1
pkgs/applications/altcoins/default.nix+4−1 pkgs/applications/altcoins/pivx.nix+54
pkgs/applications/altcoins/default.nix+4−1
@@ -1,4 +1,4 @@
1−{ callPackage, boost155, boost165, openssl_1_1, haskellPackages, darwin, libsForQt5, miniupnpc_2, python3, buildGo110Package }:
1+{ callPackage, boost155, boost165, openssl_1_1, haskellPackages, darwin, libsForQt5, libsForQt59, miniupnpc_2, python3, buildGo110Package }:
22
33rec {
44
@@ -75,6 +75,9 @@ rec {
7575 namecoin = callPackage ./namecoin.nix { withGui = true; };
7676 namecoind = callPackage ./namecoin.nix { withGui = false; };
7777
78+ pivx = libsForQt59.callPackage ./pivx.nix { withGui = true; };
79+ pivxd = callPackage ./pivx.nix { withGui = false; };
80+
7881 ethabi = callPackage ./ethabi.nix { };
7982
8083 stellar-core = callPackage ./stellar-core.nix { };
pkgs/applications/altcoins/pivx.nixnew file+54
@@ -0,0 +1,54 @@
1+{ fetchFromGitHub, stdenv, pkgconfig, autoreconfHook
2+, openssl, db48, boost, zlib, miniupnpc, gmp
3+, qrencode, glib, protobuf, yasm, libevent
4+, utillinux, qtbase ? null, qttools ? null
5+, enableUpnp ? false
6+, disableWallet ? false
7+, disableDaemon ? false
8+, withGui ? false }:
9+
10+with stdenv.lib;
11+stdenv.mkDerivation rec {
12+ name = "pivx-${version}";
13+ version = "3.2.0";
14+
15+ src = fetchFromGitHub {
16+ owner = "PIVX-Project";
17+ repo= "PIVX";
18+ rev = "v${version}";
19+ sha256 = "1sym6254vhq8qqpxq9qhy10m5167v7x93kqaj1gixc1vwwbxyazy";
20+ };
21+
22+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
23+ buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf utillinux ]
24+ ++ optionals withGui [ qtbase qttools qrencode ];
25+
26+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
27+ ++ optional enableUpnp "--enable-upnp-default"
28+ ++ optional disableWallet "--disable-wallet"
29+ ++ optional disableDaemon "--disable-daemon"
30+ ++ optionals withGui [ "--with-gui=yes"
31+ "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
32+ ];
33+
34+ enableParallelBuilding = true;
35+ doChecks = true;
36+ postBuild = ''
37+ mkdir -p $out/share/applications $out/share/icons
38+ cp contrib/debian/pivx-qt.desktop $out/share/applications/
39+ cp share/pixmaps/*128.png $out/share/icons/
40+ '';
41+
42+ meta = with stdenv.lib; {
43+ description = "An open source crypto-currency focused on fast private transactions";
44+ longDescription = ''
45+ PIVX is an MIT licensed, open source, blockchain-based cryptocurrency with
46+ ultra fast transactions, low fees, high network decentralization, and
47+ Zero Knowledge cryptography proofs for industry-leading transaction anonymity.
48+ '';
49+ license = licenses.mit;
50+ homepage = https://www.dash.org;
51+ maintainers = with maintainers; [ wucke13 ];
52+ platforms = platforms.unix;
53+ };
54+}