Skip to content

Commit

Permalink
digikam: add conditional cmake flag for cudaSupport (#356596)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman authored Dec 5, 2024
2 parents ef4cc9c + 5fbc273 commit 774f423
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/by-name/di/digikam/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
x265,
libGLX,
libGLU,
cudaPackages,
enableCuda ? config.cudaSupport,

kdePackages,

Expand Down Expand Up @@ -171,6 +173,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…
Expand Down

0 comments on commit 774f423

Please sign in to comment.