xmrig: patch modprobe path (#428770)

authored by Aleksana and committed by GitHub 1e95fd75 1e0de26b

+5
+5
pkgs/by-name/xm/xmrig/package.nix
··· 7 7 libmicrohttpd, 8 8 openssl, 9 9 hwloc, 10 + kmod, 10 11 donateLevel ? 0, 11 12 }: 12 13 ··· 29 30 substituteAllInPlace src/donate.h 30 31 substituteInPlace cmake/OpenSSL.cmake \ 31 32 --replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)" 33 + '' 34 + + lib.optionalString stdenv.hostPlatform.isLinux '' 35 + substituteInPlace src/hw/msr/Msr_linux.cpp \ 36 + --replace "/sbin/modprobe" "${kmod}/bin/modprobe" 32 37 ''; 33 38 34 39 nativeBuildInputs = [