ethminer: use regular stdenv when CUDA isn't used

This commit is contained in:
Atemu 2021-04-25 13:04:23 +02:00
parent a053eae561
commit 101e5cdceb

View File

@ -1,5 +1,6 @@
{ {
lib, lib,
stdenv,
clangStdenv, clangStdenv,
fetchFromGitHub, fetchFromGitHub,
opencl-headers, opencl-headers,
@ -16,11 +17,11 @@
openssl, openssl,
pkg-config, pkg-config,
cli11 cli11
}: }@args:
# Note that this requires clang < 9.0 to build, and currently # Note that this requires clang < 9.0 to build, and currently
# clangStdenv provides clang 7.1 which satisfies the requirement. # clangStdenv provides clang 7.1 which satisfies the requirement.
let stdenv = clangStdenv; let stdenv = if cudaSupport then clangStdenv else args.stdenv;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "ethminer"; pname = "ethminer";