nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 # Required in addition to ccRoot as otherwise bin/gcc is looked up
9 # when building CMakeCUDACompilerId.cu
10 substitutions.ccFullPath = "${backendStdenv.cc}/bin/${backendStdenv.cc.targetPrefix}c++";
11} ./setup-cuda-hook.sh