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:
parent
142bc0411a
commit
d1e4dfa057
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user