2022-04-27 09:35:20 +00:00
|
|
|
{ mkDerivation, lib, fetchurl, fetchpatch, cmake, doxygen, extra-cmake-modules, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# For `digitaglinktree`
|
|
|
|
, perl, sqlite
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qtsvg
|
|
|
|
, qtwebengine
|
|
|
|
|
|
|
|
, akonadi-contacts
|
|
|
|
, kcalendarcore
|
|
|
|
, kconfigwidgets
|
|
|
|
, kcoreaddons
|
|
|
|
, kdoctools
|
|
|
|
, kfilemetadata
|
|
|
|
, knotifications
|
|
|
|
, knotifyconfig
|
|
|
|
, ktextwidgets
|
|
|
|
, kwidgetsaddons
|
|
|
|
, kxmlgui
|
|
|
|
|
|
|
|
, bison
|
|
|
|
, boost
|
|
|
|
, eigen
|
|
|
|
, exiv2
|
|
|
|
, ffmpeg
|
|
|
|
, flex
|
2020-10-07 09:15:18 +00:00
|
|
|
, graphviz
|
|
|
|
, imagemagick
|
2020-04-24 23:36:52 +00:00
|
|
|
, lcms2
|
|
|
|
, lensfun
|
|
|
|
, libgphoto2
|
|
|
|
, libkipi
|
|
|
|
, libksane
|
|
|
|
, liblqr1
|
2020-10-07 09:15:18 +00:00
|
|
|
, libqtav
|
2020-04-24 23:36:52 +00:00
|
|
|
, libusb1
|
|
|
|
, marble
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
2020-11-24 20:58:05 +00:00
|
|
|
, opencv
|
2020-04-24 23:36:52 +00:00
|
|
|
, pcre
|
|
|
|
, threadweaver
|
2020-10-07 09:15:18 +00:00
|
|
|
, x265
|
2022-04-27 09:35:20 +00:00
|
|
|
, jasper
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# For panorama and focus stacking
|
|
|
|
, enblend-enfuse
|
|
|
|
, hugin
|
|
|
|
, gnumake
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
, breeze-icons
|
2020-04-24 23:36:52 +00:00
|
|
|
, oxygen
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "digikam";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "7.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchurl {
|
2021-12-24 04:21:11 +00:00
|
|
|
url = "mirror://kde/stable/${pname}/${version}/digiKam-${version}.tar.xz";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-2OHucyHT/DE5FvUVdW4wKaxBh9xFO2kzhI1N5TFLZkE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "akonadi-22.04.patch";
|
|
|
|
url = "https://github.com/archlinux/svntogit-packages/raw/1b3c76a4482055524120f598325d90545ff9c020/trunk/akonadi-22.04.patch";
|
|
|
|
sha256 = "sha256-ittgkl2t/nAD0ci2fNYoAd4E2M6Gg0vqqjxqZugBuko=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake doxygen extra-cmake-modules kdoctools wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bison
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
exiv2
|
|
|
|
ffmpeg
|
|
|
|
flex
|
2020-10-07 09:15:18 +00:00
|
|
|
graphviz
|
|
|
|
imagemagick
|
2020-04-24 23:36:52 +00:00
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libgphoto2
|
|
|
|
libkipi
|
|
|
|
libksane
|
|
|
|
liblqr1
|
2020-10-07 09:15:18 +00:00
|
|
|
libqtav
|
2020-04-24 23:36:52 +00:00
|
|
|
libusb1
|
|
|
|
libGL
|
|
|
|
libGLU
|
2020-11-24 20:58:05 +00:00
|
|
|
opencv
|
2020-04-24 23:36:52 +00:00
|
|
|
pcre
|
2020-10-07 09:15:18 +00:00
|
|
|
x265
|
2022-04-27 09:35:20 +00:00
|
|
|
jasper
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
qtbase
|
|
|
|
qtxmlpatterns
|
|
|
|
qtsvg
|
|
|
|
qtwebengine
|
|
|
|
|
|
|
|
akonadi-contacts
|
|
|
|
kcalendarcore
|
|
|
|
kconfigwidgets
|
|
|
|
kcoreaddons
|
|
|
|
kfilemetadata
|
|
|
|
knotifications
|
|
|
|
knotifyconfig
|
|
|
|
ktextwidgets
|
|
|
|
kwidgetsaddons
|
|
|
|
kxmlgui
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
breeze-icons
|
2020-04-24 23:36:52 +00:00
|
|
|
marble
|
|
|
|
oxygen
|
|
|
|
threadweaver
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
|
|
"-DENABLE_INTERNALMYSQL=1"
|
|
|
|
"-DENABLE_MEDIAPLAYER=1"
|
|
|
|
"-DENABLE_QWEBENGINE=on"
|
2021-01-09 10:05:03 +00:00
|
|
|
"-DENABLE_APPSTYLES=on"
|
2022-04-27 09:35:20 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=-I${libksane}/include/KF5" # fix `#include <ksane_version.h>`
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preFixup = ''
|
2020-11-03 02:18:15 +00:00
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
qtWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]})
|
|
|
|
qtWrapperArgs+=(--suffix DK_PLUGIN_PATH : ${placeholder "out"}/${qtbase.qtPluginPrefix}/${pname})
|
2020-04-24 23:36:52 +00:00
|
|
|
substituteInPlace $out/bin/digitaglinktree \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl" \
|
|
|
|
--replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Photo Management Program";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "https://www.digikam.org";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|