cudaPackages.setupCudaHook: source only from nativeBuildInputs

This commit is contained in:
Someone Serge
2023-12-05 19:24:37 +00:00
parent d031523a01
commit 37ec2cb6b1
@@ -1,5 +1,8 @@
# shellcheck shell=bash
# Only run the hook from nativeBuildInputs
(( "$hostOffset" == -1 && "$targetOffset" == 0)) || return 0
echo Sourcing setup-cuda-hook >&2
extendCUDAToolkit_ROOT() {