cudaPackages.setupCudaHook: source only from nativeBuildInputs

This commit is contained in:
Someone Serge 2023-12-04 20:47:11 +00:00
parent d031523a01
commit 37ec2cb6b1
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4

View File

@ -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() {