Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
893 B · 29 lines
Nix
123456789101112131415161718192021222324252627282930# autoAddCudaCompatRunpath hook must be added AFTER `setupCudaHook`. Both# hooks prepend a path with `libcuda.so` to the `DT_RUNPATH` section of# patched elf files, but `cuda_compat` path must take precedence (otherwise,# it doesn't have any effect) and thus appear first. Meaning this hook must be# executed last.{ autoFixElfFiles, cuda_compat ? null, makeSetupHook,}:makeSetupHook { name = "auto-add-cuda-compat-runpath-hook"; propagatedBuildInputs = [ autoFixElfFiles ];
substitutions = { libcudaPath = "${cuda_compat}/compat"; };
meta = let # Handle `null`s in pre-`cuda_compat` releases, # and `badPlatform`s for `!isJetsonBuild`. platforms = cuda_compat.meta.platforms or [ ]; badPlatforms = cuda_compat.meta.badPlatforms or platforms; in { inherit badPlatforms platforms; };} ./auto-add-cuda-compat-runpath.sh