Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# Currently propagated by cuda_nvcc or cudatoolkit, rather than used directly 2{ makeSetupHook, backendStdenv }: 3makeSetupHook { 4 name = "setup-cuda-hook"; 5 6 substitutions.setupCudaHook = placeholder "out"; 7 8 # Point NVCC at a compatible compiler 9 substitutions.ccRoot = "${backendStdenv.cc}"; 10 11 # Required in addition to ccRoot as otherwise bin/gcc is looked up 12 # when building CMakeCUDACompilerId.cu 13 substitutions.ccFullPath = "${backendStdenv.cc}/bin/${backendStdenv.cc.targetPrefix}c++"; 14} ./setup-cuda-hook.sh