saga: fix build with cudaSupport

This commit is contained in:
Gaetan Lepage
2025-10-30 09:03:57 +00:00
parent e53d27e5de
commit ac8ee5518f
+8
View File
@@ -1,6 +1,7 @@
{
lib,
stdenv,
config,
fetchurl,
# nativeBuildInputs
@@ -8,6 +9,8 @@
dos2unix,
pkg-config,
wrapGAppsHook3,
# cuda-specific
cudaPackages,
# darwin-specific
desktopToDarwinBundle,
@@ -34,6 +37,8 @@
poppler,
sqlite,
unixODBC,
cudaSupport ? config.cudaSupport,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -57,6 +62,9 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
wrapGAppsHook3
]
++ lib.optionals cudaSupport [
cudaPackages.cuda_nvcc
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
desktopToDarwinBundle
];