digikam: Fix build when config.cudaSupport is enabled

This commit is contained in:
Aidan Gauland 2023-05-29 15:19:14 +12:00
parent 233af5c42a
commit fe12b14ffd
No known key found for this signature in database
GPG Key ID: 16E68DD2D0E77C91

View File

@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook
{ mkDerivation, config, lib, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook
# For `digitaglinktree`
, perl, sqlite
@ -52,6 +52,9 @@
, breeze-icons
, oxygen
, cudaSupport ? config.cudaSupport or false
, cudaPackages ? {}
}:
mkDerivation rec {
@ -63,7 +66,15 @@ mkDerivation rec {
sha256 = "sha256-o/MPAbfRttWFgivNXr+N9p4P8CRWOnJGLr+AadvaIuE=";
};
nativeBuildInputs = [ cmake doxygen extra-cmake-modules kdoctools wrapGAppsHook ];
nativeBuildInputs = [
cmake
doxygen
extra-cmake-modules
kdoctools
wrapGAppsHook
] ++ lib.optionals cudaSupport (with cudaPackages; [
cuda_nvcc
]);
buildInputs = [
bison
@ -109,7 +120,9 @@ mkDerivation rec {
marble
oxygen
threadweaver
];
] ++ lib.optionals cudaSupport (with cudaPackages; [
cuda_cudart
]);
cmakeFlags = [
"-DENABLE_MYSQLSUPPORT=1"