From b53e09817912a220dc695320a6dd3f69f392e219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sat, 26 Sep 2026 14:12:02 +0200 Subject: [PATCH] flake: fix devshell on macOS cudart was added as a direct dependency, but it does not exist on macOS, so make it conditional on being supported on the platform. --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index e27d14ab..b43acc64 100644 --- a/flake.nix +++ b/flake.nix @@ -161,8 +161,6 @@ ]; buildInputs = [ black - # For testing CUDA version detection in kernels. - cudaPackages.cuda_cudart isort mypy pre-commit @@ -190,7 +188,9 @@ types-requests types-tabulate venvShellHook - ]); + ]) + # For testing CUDA version detection in kernels. + ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform cudaPackages.cuda_cudart) cudaPackages.cuda_cudart; RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";