From 9602bfe0a049f7bbce407cbab98dcbaf9dbb69c7 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Thu, 9 Oct 2025 20:34:07 +0000 Subject: [PATCH] cudaPackages.buildRedist: condition inclusion of autoAddCudaCompatRupath on its enablement Signed-off-by: Connor Baker --- pkgs/development/cuda-modules/buildRedist/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/buildRedist/default.nix b/pkgs/development/cuda-modules/buildRedist/default.nix index b29eacd37c2b..a1aa5645bce4 100644 --- a/pkgs/development/cuda-modules/buildRedist/default.nix +++ b/pkgs/development/cuda-modules/buildRedist/default.nix @@ -272,7 +272,7 @@ extendMkDerivation { # autoAddCudaCompatRunpath depends on cuda_compat and would cause # infinite recursion if applied to `cuda_compat` itself (beside the fact # that it doesn't make sense in the first place) - ++ lib.optionals (finalAttrs.pname != "cuda_compat" && flags.isJetsonBuild) [ + ++ lib.optionals (finalAttrs.pname != "cuda_compat" && autoAddCudaCompatRunpath.enableHook) [ # autoAddCudaCompatRunpath must appear AFTER autoAddDriverRunpath. # See its documentation in ./setup-hooks/extension.nix. autoAddCudaCompatRunpath