2024-07-15 10:44:59 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
config,
|
|
|
|
lib,
|
2024-07-15 10:58:53 +00:00
|
|
|
fetchFromGitLab,
|
2024-07-15 10:44:59 +00:00
|
|
|
cmake,
|
2024-07-15 10:58:53 +00:00
|
|
|
ninja,
|
2024-07-15 10:44:59 +00:00
|
|
|
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 ? { },
|
2015-03-15 13:55:32 +00:00
|
|
|
}:
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2024-07-15 10:57:36 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-07-15 10:44:59 +00:00
|
|
|
pname = "digikam";
|
2024-07-15 10:58:53 +00:00
|
|
|
version = "8.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "invent.kde.org";
|
|
|
|
owner = "graphics";
|
|
|
|
repo = "digikam";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-GJYlxJkvFEXppVk0yC9ojszylfAGt3eBMAjNUu60XDY=";
|
2017-02-18 17:55:57 +00:00
|
|
|
};
|
2010-10-05 17:44:05 +00:00
|
|
|
|
2024-01-20 16:57:25 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2023-05-29 03:19:14 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-07-15 10:58:53 +00:00
|
|
|
ninja
|
2023-05-29 03:19:14 +00:00
|
|
|
doxygen
|
|
|
|
extra-cmake-modules
|
2024-01-20 16:28:18 +00:00
|
|
|
libsForQt5.kdoctools
|
|
|
|
libsForQt5.wrapQtAppsHook
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2024-07-15 10:44:59 +00:00
|
|
|
] ++ 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
|
|
|
|
|
|
|
|
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 ]);
|
2010-10-12 07:49:24 +00:00
|
|
|
|
2024-04-20 09:51:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace \
|
|
|
|
core/dplugins/bqm/custom/userscript/userscript.cpp \
|
|
|
|
core/utilities/import/backend/cameracontroller.cpp \
|
|
|
|
--replace-fail \"/bin/bash\" \"${lib.getExe bash}\"
|
|
|
|
'';
|
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
|
|
"-DENABLE_INTERNALMYSQL=1"
|
2017-04-17 20:28:20 +00:00
|
|
|
"-DENABLE_MEDIAPLAYER=1"
|
2018-12-30 18:57:52 +00:00
|
|
|
"-DENABLE_QWEBENGINE=on"
|
2021-01-04 23:54:57 +00:00
|
|
|
"-DENABLE_APPSTYLES=on"
|
2024-01-20 16:28:18 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=-I${libsForQt5.libksane}/include/KF5" # fix `#include <ksane_version.h>`
|
2017-02-18 17:55:57 +00:00
|
|
|
];
|
2015-10-04 00:07:00 +00:00
|
|
|
|
2020-11-01 14:22:55 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2017-05-16 15:56:41 +00:00
|
|
|
preFixup = ''
|
2020-11-01 14:22:55 +00:00
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
2024-07-15 10:44:59 +00:00
|
|
|
qtWrapperArgs+=(--prefix PATH : ${
|
|
|
|
lib.makeBinPath [
|
|
|
|
gnumake
|
|
|
|
hugin
|
|
|
|
enblend-enfuse
|
|
|
|
]
|
|
|
|
})
|
2024-07-15 10:57:36 +00:00
|
|
|
qtWrapperArgs+=(--suffix DK_PLUGIN_PATH : ${placeholder "out"}/${libsForQt5.qtbase.qtPluginPrefix}/digikam)
|
2017-02-18 17:55:57 +00:00
|
|
|
substituteInPlace $out/bin/digitaglinktree \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl" \
|
|
|
|
--replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"
|
2015-10-04 00:07:00 +00:00
|
|
|
'';
|
|
|
|
|
2024-07-15 10:57:36 +00:00
|
|
|
meta = {
|
|
|
|
description = "Photo management application";
|
|
|
|
homepage = "https://www.digikam.org/";
|
2024-07-15 10:58:53 +00:00
|
|
|
changelog = "${finalAttrs.src.meta.homepage}-/blob/master/project/NEWS.${finalAttrs.version}";
|
2024-07-15 10:57:36 +00:00
|
|
|
sourceProvenance = [ lib.sourceTypes.fromSource ];
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-08-04 15:36:02 +00:00
|
|
|
mainProgram = "digikam";
|
2010-02-10 15:06:50 +00:00
|
|
|
};
|
2024-07-15 10:57:36 +00:00
|
|
|
})
|