Commit 101e5cdc authored by Atemu's avatar Atemu
Browse files

ethminer: use regular stdenv when CUDA isn't used

parent a053eae5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  clangStdenv,
  fetchFromGitHub,
  opencl-headers,
@@ -16,11 +17,11 @@
  openssl,
  pkg-config,
  cli11
}:
}@args:

# Note that this requires clang < 9.0 to build, and currently
# 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 {
  pname = "ethminer";