ethminer: provide a CUDA-free version
CUDA is only needed for Nvidia GPUs; AMD has a fully open stack
This commit is contained in:
parent
cc7ee239f7
commit
a053eae561
@ -8,6 +8,7 @@
|
|||||||
boost,
|
boost,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
cudatoolkit,
|
cudatoolkit,
|
||||||
|
cudaSupport,
|
||||||
mesa,
|
mesa,
|
||||||
ethash,
|
ethash,
|
||||||
opencl-info,
|
opencl-info,
|
||||||
@ -41,6 +42,8 @@ in stdenv.mkDerivation rec {
|
|||||||
"-DAPICORE=ON"
|
"-DAPICORE=ON"
|
||||||
"-DETHDBUS=OFF"
|
"-DETHDBUS=OFF"
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
|
] ++ lib.optionals (!cudaSupport) [
|
||||||
|
"-DETHASHCUDA=OFF" # on by default
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -54,12 +57,13 @@ in stdenv.mkDerivation rec {
|
|||||||
boost
|
boost
|
||||||
opencl-headers
|
opencl-headers
|
||||||
mesa
|
mesa
|
||||||
cudatoolkit
|
|
||||||
ethash
|
ethash
|
||||||
opencl-info
|
opencl-info
|
||||||
ocl-icd
|
ocl-icd
|
||||||
openssl
|
openssl
|
||||||
jsoncpp
|
jsoncpp
|
||||||
|
] ++ lib.optionals cudaSupport [
|
||||||
|
cudatoolkit
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -71,7 +75,7 @@ in stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Ethereum miner with OpenCL, CUDA and stratum support";
|
description = "Ethereum miner with OpenCL${lib.optionalString cudaSupport ", CUDA"} and stratum support";
|
||||||
homepage = "https://github.com/ethereum-mining/ethminer";
|
homepage = "https://github.com/ethereum-mining/ethminer";
|
||||||
platforms = [ "x86_64-linux" ];
|
platforms = [ "x86_64-linux" ];
|
||||||
maintainers = with maintainers; [ nand0p atemu ];
|
maintainers = with maintainers; [ nand0p atemu ];
|
||||||
|
@ -3470,7 +3470,9 @@ in
|
|||||||
|
|
||||||
ethash = callPackage ../development/libraries/ethash { };
|
ethash = callPackage ../development/libraries/ethash { };
|
||||||
|
|
||||||
ethminer = callPackage ../tools/misc/ethminer { };
|
ethminer = callPackage ../tools/misc/ethminer { cudaSupport = config.cudaSupport or true; };
|
||||||
|
ethminer-cuda = ethminer.override { cudaSupport = true; };
|
||||||
|
ethminer-free = ethminer.override { cudaSupport = false; };
|
||||||
|
|
||||||
cuetools = callPackage ../tools/cd-dvd/cuetools { };
|
cuetools = callPackage ../tools/cd-dvd/cuetools { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user