From 2ee10f484a1f201a05fdc548f5b960da4e7b2ae0 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Tue, 14 Oct 2025 03:23:54 +0000 Subject: [PATCH] cudaPackages.autoAddCudaCompatRunpath: clean up enableHook Signed-off-by: Connor Baker --- .../cuda-modules/packages/autoAddCudaCompatRunpath/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix b/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix index 242323052563..75a279addf78 100644 --- a/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix +++ b/pkgs/development/cuda-modules/packages/autoAddCudaCompatRunpath/package.nix @@ -13,7 +13,7 @@ let # cuda_compat can be null or broken, depending on the platform, CUDA release, and compute capability. # To avoid requiring all consumers of this hook to do these checks, we do them here; the hook is a no-op if # cuda_compat is not available. - enableHook = cuda_compat != null && cuda_compat.meta.available; + enableHook = cuda_compat.meta.available or false; in makeSetupHook { name = "auto-add-cuda-compat-runpath-hook";