Unverified Commit d1e4dfa0 authored by Alexandre Cavalheiro S. Tiago da Silva's avatar Alexandre Cavalheiro S. Tiago da Silva
Browse files

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.
parent 142bc041
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  fetchFromGitHub,
  autoAddDriverRunpath,
  versionCheckHook,
}:

@@ -19,6 +20,10 @@ rustPlatform.buildRustPackage rec {
  useFetchCargoVendor = true;
  cargoHash = "sha256-DuuHqBhL25ghgcYxcOtWRArUqL9+c3d5mBrAcWTAFW8=";

  nativeBuildInputs = [
    autoAddDriverRunpath
  ];

  doInstallCheck = true;

  nativeInstallCheckInputs = [