ethminer: fix cuda11 support
cuda11 removes support for compute_30 cosmetic changes: move postPatch and patches closer to src
This commit is contained in:
parent
226fabb1a6
commit
be32f3d54b
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
fetchpatch,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
opencl-headers,
|
opencl-headers,
|
||||||
cmake,
|
cmake,
|
||||||
|
@ -31,6 +32,21 @@ stdenv.mkDerivation rec {
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# global context library is separated from libethash
|
||||||
|
./add-global-context.patch
|
||||||
|
|
||||||
|
# CUDA 11 no longer support SM30
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/ethereum-mining/ethminer/commit/dae359dff28f376d4ce7ddfbd651dcd34d6dad8f.patch";
|
||||||
|
hash = "sha256-CJGKc0rXOcKDX1u5VBzc8gyBi1Me9CNATfQzKViqtAA=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's/_lib_static//' libpoolprotocols/CMakeLists.txt
|
||||||
|
'';
|
||||||
|
|
||||||
# NOTE: dbus is broken
|
# NOTE: dbus is broken
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DHUNTER_ENABLED=OFF"
|
"-DHUNTER_ENABLED=OFF"
|
||||||
|
@ -64,15 +80,6 @@ stdenv.mkDerivation rec {
|
||||||
cudatoolkit
|
cudatoolkit
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# global context library is separated from libethash
|
|
||||||
./add-global-context.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
sed -i 's/_lib_static//' libpoolprotocols/CMakeLists.txt
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/ethminer --prefix LD_LIBRARY_PATH : /run/opengl-driver/lib
|
wrapProgram $out/bin/ethminer --prefix LD_LIBRARY_PATH : /run/opengl-driver/lib
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue