From 5fbc2731f4107f75bcd5bc5842dc16280d7ee5b3 Mon Sep 17 00:00:00 2001 From: NovaViper Date: Sat, 16 Nov 2024 16:41:07 -0600 Subject: [PATCH] digikam: add conditional cmake flag for cudaSupport --- pkgs/by-name/di/digikam/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/di/digikam/package.nix b/pkgs/by-name/di/digikam/package.nix index 39a61d7e0eb5..39f2443a2734 100644 --- a/pkgs/by-name/di/digikam/package.nix +++ b/pkgs/by-name/di/digikam/package.nix @@ -37,6 +37,8 @@ x265, libGLX, libGLU, + cudaPackages, + enableCuda ? config.cudaSupport, kdePackages, @@ -178,6 +180,7 @@ stdenv.mkDerivation (finalAttrs: { #(lib.cmakeBool "ENABLE_AKONADICONTACTSUPPORT" true) (lib.cmakeBool "ENABLE_MEDIAPLAYER" true) (lib.cmakeBool "ENABLE_APPSTYLES" true) + (lib.optionals enableCuda "-DCUDA_TOOLKIT_ROOT_DIR=${cudaPackages.cudatoolkit}") ]; # Tests segfault for some reason…