xmr-stak: doesn't build with gcc7 if cuda is enabled

This commit is contained in:
Franz Pletz 2018-04-24 17:04:25 +02:00
parent 1b0a7bfe38
commit 0520634725
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
2 changed files with 8 additions and 2 deletions

View File

@ -1,11 +1,16 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
{ stdenv, stdenvGcc6, lib
, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, opencl-headers, ocl-icd, hwloc, cudatoolkit
, devDonationLevel ? "0.0"
, cudaSupport ? false
, openclSupport ? true
}:
stdenv.mkDerivation rec {
let
stdenv' = if cudaSupport then stdenvGcc6 else stdenv;
in
stdenv'.mkDerivation rec {
name = "xmr-stak-${version}";
version = "2.4.3";

View File

@ -16785,6 +16785,7 @@ with pkgs;
};
xmr-stak = callPackage ../applications/misc/xmr-stak {
stdenvGcc6 = overrideCC stdenv gcc6;
hwloc = hwloc-nox;
};