xmrig: patch modprobe path (#428770)

This commit is contained in:
Aleksana 2025-07-28 13:05:56 +08:00 committed by GitHub
commit 1e95fd75ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = [