diff options
Diffstat (limited to 'pkgs/by-name/di')
-rw-r--r-- | pkgs/by-name/di/digikam/package.nix | 198 |
1 files changed, 106 insertions, 92 deletions
diff --git a/pkgs/by-name/di/digikam/package.nix b/pkgs/by-name/di/digikam/package.nix index 8a83cf6583cc..c3c8a913cafd 100644 --- a/pkgs/by-name/di/digikam/package.nix +++ b/pkgs/by-name/di/digikam/package.nix @@ -1,43 +1,52 @@ -{ stdenv, config, lib, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook3 - -# For `digitaglinktree` -, perl, sqlite - -, libsForQt5 - -, bison -, boost -, eigen -, exiv2 -, ffmpeg_4 -, flex -, graphviz -, imagemagick -, lcms2 -, lensfun -, libgphoto2 -, liblqr1 -, libusb1 -, libheif -, libGL -, libGLU -, opencv -, pcre -, x265 -, jasper - -, bash -# For panorama and focus stacking -, enblend-enfuse -, hugin -, gnumake - -, cudaSupport ? config.cudaSupport -, cudaPackages ? {} +{ + stdenv, + config, + lib, + fetchurl, + cmake, + doxygen, + extra-cmake-modules, + wrapGAppsHook3, + + # For `digitaglinktree` + perl, + sqlite, + + libsForQt5, + + bison, + boost, + eigen, + exiv2, + ffmpeg_4, + flex, + graphviz, + imagemagick, + lcms2, + lensfun, + libgphoto2, + liblqr1, + libusb1, + libheif, + libGL, + libGLU, + opencv, + pcre, + x265, + jasper, + + bash, + # For panorama and focus stacking + enblend-enfuse, + hugin, + gnumake, + + cudaSupport ? config.cudaSupport, + cudaPackages ? { }, }: stdenv.mkDerivation rec { - pname = "digikam"; + pname = "digikam"; version = "8.3.0"; src = fetchurl { @@ -56,60 +65,59 @@ stdenv.mkDerivation rec { libsForQt5.kdoctools libsForQt5.wrapQtAppsHook wrapGAppsHook3 - ] ++ lib.optionals cudaSupport (with cudaPackages; [ - cuda_nvcc - ]); - - buildInputs = [ - bison - boost - eigen - exiv2 - ffmpeg_4 - flex - graphviz - imagemagick - lcms2 - lensfun - libgphoto2 - libheif - liblqr1 - libusb1 - libGL - libGLU - opencv - pcre - x265 - jasper - ] ++ (with libsForQt5; [ - libkipi - libksane - libqtav - - qtbase - qtxmlpatterns - qtsvg - qtwebengine - qtnetworkauth - - akonadi-contacts - kcalendarcore - kconfigwidgets - kcoreaddons - kfilemetadata - knotifications - knotifyconfig - ktextwidgets - kwidgetsaddons - kxmlgui - - breeze-icons - marble - oxygen - threadweaver - ]) ++ lib.optionals cudaSupport (with cudaPackages; [ - cuda_cudart - ]); + ] ++ lib.optionals cudaSupport (with cudaPackages; [ cuda_nvcc ]); + + buildInputs = + [ + bison + boost + eigen + exiv2 + ffmpeg_4 + flex + graphviz + imagemagick + lcms2 + lensfun + libgphoto2 + libheif + liblqr1 + libusb1 + libGL + libGLU + opencv + pcre + x265 + jasper + ] + ++ (with libsForQt5; [ + libkipi + libksane + libqtav + + qtbase + qtxmlpatterns + qtsvg + qtwebengine + qtnetworkauth + + akonadi-contacts + kcalendarcore + kconfigwidgets + kcoreaddons + kfilemetadata + knotifications + knotifyconfig + ktextwidgets + kwidgetsaddons + kxmlgui + + breeze-icons + marble + oxygen + threadweaver + ]) + ++ lib.optionals cudaSupport (with cudaPackages; [ cuda_cudart ]); postPatch = '' substituteInPlace \ @@ -131,7 +139,13 @@ stdenv.mkDerivation rec { preFixup = '' qtWrapperArgs+=("''${gappsWrapperArgs[@]}") - qtWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]}) + qtWrapperArgs+=(--prefix PATH : ${ + lib.makeBinPath [ + gnumake + hugin + enblend-enfuse + ] + }) qtWrapperArgs+=(--suffix DK_PLUGIN_PATH : ${placeholder "out"}/${libsForQt5.qtbase.qtPluginPrefix}/${pname}) substituteInPlace $out/bin/digitaglinktree \ --replace "/usr/bin/perl" "${perl}/bin/perl" \ |