git.iko.soy/typeable/nixpkgs
on master help sign in
bitcoin-abc: build against qt5
commit589cff44bcfc7d69733b0b0af2f403b630388604 authorJoerg Thalheim <joerg@thalheim.io> dateWed 27 Sep 2017, 23:13 (9 years ago) parentd82578a
2 files changed+20−3
pkgs/applications/altcoins/bitcoin-abc.nix+5−3 pkgs/applications/altcoins/fix-bitcoin-qt-build.patch+15
pkgs/applications/altcoins/bitcoin-abc.nix+5−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
2−, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
2+, zlib, miniupnpc, qt5, utillinux, protobuf, qrencode, libevent
33, withGui }:
44
55with stdenv.lib;
@@ -16,13 +16,15 @@ stdenv.mkDerivation rec {
1616 sha256 = "1fygn6cc99iasg5g5jyps5ps873hfnn4ln4hsmcwlwiqd591qxyv";
1717 };
1818
19+ patches = [ ./fix-bitcoin-qt-build.patch ];
20+
1921 nativeBuildInputs = [ pkgconfig autoreconfHook ];
2022 buildInputs = [ openssl db48 boost zlib
2123 miniupnpc utillinux protobuf libevent ]
22− ++ optionals withGui [ qt4 qrencode ];
24+ ++ optionals withGui [ qt5.qtbase qt5.qttools qrencode ];
2325
2426 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
25− ++ optionals withGui [ "--with-gui=qt4" ];
27+ ++ optionals withGui [ "--with-gui=qt5" ];
2628
2729 meta = {
2830 description = "Peer-to-peer electronic cash system (Cash client)";
pkgs/applications/altcoins/fix-bitcoin-qt-build.patchnew file+15
@@ -0,0 +1,15 @@
1+--- bitcoin-abc-v0.15.0-src/build-aux/m4/bitcoin_qt.m4 1970-01-01 01:00:01.000000000 +0100
2++++ bitcoin-abc-v0.15.0-src.org/build-aux/m4/bitcoin_qt.m4 2017-09-27 23:38:44.748384197 +0100
3+@@ -35,11 +35,7 @@
4+ dnl Output: $1 is set to the path of $2 if found. $2 are searched in order.
5+ AC_DEFUN([BITCOIN_QT_PATH_PROGS],[
6+ BITCOIN_QT_CHECK([
7+- if test "x$3" != "x"; then
8+- AC_PATH_PROGS($1,$2,,$3)
9+- else
10+- AC_PATH_PROGS($1,$2)
11+- fi
12++ AC_PATH_PROGS($1,$2)
13+ if test "x$$1" = "x" && test "x$4" != "xyes"; then
14+ BITCOIN_QT_FAIL([$1 not found])
15+ fi