1{ flags, lib }:
2prevAttrs: {
3 autoPatchelfIgnoreMissingDeps = prevAttrs.autoPatchelfIgnoreMissingDeps or [ ] ++ [
4 "libnvrm_gpu.so"
5 "libnvrm_mem.so"
6 "libnvdla_runtime.so"
7 ];
8 # `cuda_compat` only works on aarch64-linux, and only when building for Jetson devices.
9 badPlatformsConditions = prevAttrs.badPlatformsConditions or { } // {
10 "Trying to use cuda_compat on aarch64-linux targeting non-Jetson devices" = !flags.isJetsonBuild;
11 };
12}