18 lines
482 B
Nix
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
|