xmrig: patch modprobe path (#428770)
This commit is contained in:
commit
1e95fd75ac
@ -7,6 +7,7 @@
|
|||||||
libmicrohttpd,
|
libmicrohttpd,
|
||||||
openssl,
|
openssl,
|
||||||
hwloc,
|
hwloc,
|
||||||
|
kmod,
|
||||||
donateLevel ? 0,
|
donateLevel ? 0,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -29,6 +30,10 @@ stdenv.mkDerivation rec {
|
|||||||
substituteAllInPlace src/donate.h
|
substituteAllInPlace src/donate.h
|
||||||
substituteInPlace cmake/OpenSSL.cmake \
|
substituteInPlace cmake/OpenSSL.cmake \
|
||||||
--replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)"
|
--replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)"
|
||||||
|
''
|
||||||
|
+ lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||||
|
substituteInPlace src/hw/msr/Msr_linux.cpp \
|
||||||
|
--replace "/sbin/modprobe" "${kmod}/bin/modprobe"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user