summary refs log tree commit diff
path: root/pkgs/applications/altcoins/bitcoin.nix
diff options
context:
space:
mode:
authorRussell O'Connor <roconnor@theorem.ca>2018-10-03 22:51:53 -0400
committerRussell O'Connor <roconnor@theorem.ca>2018-10-04 21:41:40 -0400
commitef0f1eb33fda9c5bd6940379e4be7cefd5df93c1 (patch)
tree693739d60caad46902dcd90b27cb0f39d9238920 /pkgs/applications/altcoins/bitcoin.nix
parent2948f4044952484bba6fc5bcacb97cb8767fa823 (diff)
downloadnixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar.gz
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar.bz2
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar.lz
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar.xz
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.tar.zst
nixpkgs-ef0f1eb33fda9c5bd6940379e4be7cefd5df93c1.zip
bitcoin: enable doCheck
Fixes checkPhase for bitcoin-qt.
Diffstat (limited to 'pkgs/applications/altcoins/bitcoin.nix')
-rw-r--r--pkgs/applications/altcoins/bitcoin.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/altcoins/bitcoin.nix b/pkgs/applications/altcoins/bitcoin.nix
index 04a4a18dd4c..c266fa2fef2 100644
--- a/pkgs/applications/altcoins/bitcoin.nix
+++ b/pkgs/applications/altcoins/bitcoin.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost, zeromq
-, zlib, miniupnpc, qtbase ? null, qttools ? null, utillinux, protobuf, qrencode, libevent
+, zlib, miniupnpc, qtbase ? null, qttools ? null, utillinux, protobuf, python3, qrencode, libevent
 , withGui }:
 
 with stdenv.lib;
@@ -14,7 +14,8 @@ stdenv.mkDerivation rec{
     sha256 = "0pkq28d2dj22qrxyyg9kh0whmhj7ghyabnhyqldbljv4a7l3kvwq";
   };
 
-  nativeBuildInputs = [ pkgconfig autoreconfHook ];
+  nativeBuildInputs = [ pkgconfig autoreconfHook ]
+                   ++ optionals doCheck [ python3 ];
   buildInputs = [ openssl db48 boost zlib zeromq
                   miniupnpc protobuf libevent]
                   ++ optionals stdenv.isLinux [ utillinux ]
@@ -30,9 +31,11 @@ stdenv.mkDerivation rec{
                                             "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
                                           ];
 
-  # Fails with "This application failed to start because it could not
-  # find or load the Qt platform plugin "minimal""
-  doCheck = false;
+  doCheck = true;
+
+  # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI.
+  # See also https://github.com/NixOS/nixpkgs/issues/24256
+  checkFlags = optionals withGui [ "QT_PLUGIN_PATH=${qtbase}/lib/qt-5.${versions.minor qtbase.version}/plugins" ];
 
   enableParallelBuilding = true;