Merge pull request #180090 from trofi/drop-cuda-from-xmr-stak
xmr-stak: drop gcc6 requrement (and cuda support)
This commit is contained in:
commit
79f0470dc2
2 changed files with 4 additions and 12 deletions
|
@ -1,16 +1,11 @@
|
|||
{ stdenv, stdenvGcc6, lib
|
||||
, fetchFromGitHub, cmake, libmicrohttpd_0_9_70, openssl
|
||||
, opencl-headers, ocl-icd, hwloc, cudatoolkit
|
||||
, opencl-headers, ocl-icd, hwloc
|
||||
, devDonationLevel ? "0.0"
|
||||
, cudaSupport ? false
|
||||
, openclSupport ? true
|
||||
}:
|
||||
|
||||
let
|
||||
stdenv' = if cudaSupport then stdenvGcc6 else stdenv;
|
||||
in
|
||||
|
||||
stdenv'.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xmr-stak";
|
||||
version = "2.10.8";
|
||||
|
||||
|
@ -23,12 +18,11 @@ stdenv'.mkDerivation rec {
|
|||
|
||||
NIX_CFLAGS_COMPILE = "-O3";
|
||||
|
||||
cmakeFlags = lib.optional (!cudaSupport) "-DCUDA_ENABLE=OFF"
|
||||
cmakeFlags = [ "-DCUDA_ENABLE=OFF" ]
|
||||
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libmicrohttpd_0_9_70 openssl hwloc ]
|
||||
++ lib.optional cudaSupport cudatoolkit
|
||||
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -28576,9 +28576,7 @@ with pkgs;
|
|||
|
||||
mod-distortion = callPackage ../applications/audio/mod-distortion { };
|
||||
|
||||
xmr-stak = callPackage ../applications/misc/xmr-stak {
|
||||
stdenvGcc6 = gcc6Stdenv;
|
||||
};
|
||||
xmr-stak = callPackage ../applications/misc/xmr-stak { };
|
||||
|
||||
xmrig = callPackage ../applications/misc/xmrig { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue