Files
2026-05-25 13:48:20 +02:00

18 lines
482 B
Nix

# Currently propagated by cuda_nvcc or cudatoolkit, rather than used directly
{
lib,
makeSetupHook,
backendStdenv,
}:
makeSetupHook {
name = "setup-cuda-hook";
substitutions.setupCudaHook = placeholder "out";
# Required in addition to ccRoot as otherwise bin/gcc is looked up
# when building CMakeCUDACompilerId.cu
substitutions.ccFullPath = "${backendStdenv.cc}/bin/${backendStdenv.cc.targetPrefix}c++";
meta.license = lib.licenses.mit;
} ./setup-cuda-hook.sh