From ac8ee5518fdebe5d04e773b6ad48eb6535270fe9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 30 Oct 2025 09:03:51 +0000 Subject: [PATCH] saga: fix build with cudaSupport --- pkgs/by-name/sa/saga/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/sa/saga/package.nix b/pkgs/by-name/sa/saga/package.nix index 8b6062988af4..533797675ed8 100644 --- a/pkgs/by-name/sa/saga/package.nix +++ b/pkgs/by-name/sa/saga/package.nix @@ -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 ];