xmrig: patch modprobe path

Signed-off-by: lxl66566 <lxl66566@gmail.com>
This commit is contained in:
lxl66566
2025-07-28 12:25:38 +08:00
parent e960a8fb5b
commit a2da4cab4b
+5
View File
@@ -7,6 +7,7 @@
libmicrohttpd,
openssl,
hwloc,
kmod,
donateLevel ? 0,
}:
@@ -29,6 +30,10 @@ stdenv.mkDerivation rec {
substituteAllInPlace src/donate.h
substituteInPlace cmake/OpenSSL.cmake \
--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 = [