diff options
author | Emily | 2024-07-15 11:44:59 +0100 |
---|---|---|
committer | Emily | 2024-07-23 18:54:54 +0100 |
commit | 60b1c879b2a20b83c44e8c5987c9c3b73ae58d30 (patch) | |
tree | 03bb63c45c53e9f4b0e66285a77e6539ae206c44 /pkgs/by-name/di | |
parent | f11a6a01cb5e2ceaa40bdc28d492bd2fd8b2a847 (diff) |
digikam: reformat with `nixfmt-rfc-style`
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" \ |