nvidia_oc: add driver runpath hook

This adds the `autoAddDriverRunpath` hook to `nvidia_oc`, patching the
ELF and giving the program the path where `libnvidia-ml.so` is located.
This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva
2025-02-07 18:12:17 -03:00
parent 142bc0411a
commit d1e4dfa057
+6 -1
View File
@@ -1,7 +1,8 @@
{
lib,
fetchFromGitHub,
rustPlatform,
fetchFromGitHub,
autoAddDriverRunpath,
versionCheckHook,
}:
@@ -19,6 +20,10 @@ rustPlatform.buildRustPackage rec {
useFetchCargoVendor = true;
cargoHash = "sha256-DuuHqBhL25ghgcYxcOtWRArUqL9+c3d5mBrAcWTAFW8=";
nativeBuildInputs = [
autoAddDriverRunpath
];
doInstallCheck = true;
nativeInstallCheckInputs = [