cudaPackages.cuda_cccl: restrict to a single output to fix libnvshmem build

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker
2025-10-23 15:30:37 +00:00
parent 8d50fc5800
commit 2811ae30af
@@ -7,11 +7,12 @@ buildRedist {
redistName = "cuda";
pname = "cuda_cccl";
outputs = [
"out"
"dev"
"include"
];
# Restrict header-only packages to a single output.
# Also, when using multiple outputs (i.e., `out`, `dev`, and `include`), something isn't being patched correctly,
# so libnvshmem fails to build, complaining about being unable to find the thrust include directory. This is likely
# because the `dev` output contains the CMake configuration and is written to assume it will share a parent
# directory with the include directory rather than be in a separate output.
outputs = [ "out" ];
prePatch = lib.optionalString (cudaAtLeast "13.0") ''
nixLog "removing top-level $PWD/include/nv directory"