2017-05-16 16:56:41 +01:00
|
|
|
{ mkDerivation, lib, fetchurl, cmake, extra-cmake-modules, wrapGAppsHook
|
2017-02-18 17:55:57 +00:00
|
|
|
|
|
|
|
# For `digitaglinktree`
|
|
|
|
, perl, sqlite
|
|
|
|
|
|
|
|
, qtbase
|
|
|
|
, qtxmlpatterns
|
|
|
|
, qtsvg
|
|
|
|
, qtwebkit
|
|
|
|
|
|
|
|
, kconfigwidgets
|
|
|
|
, kcoreaddons
|
|
|
|
, kdoctools
|
|
|
|
, kfilemetadata
|
|
|
|
, knotifications
|
|
|
|
, knotifyconfig
|
|
|
|
, ktextwidgets
|
|
|
|
, kwidgetsaddons
|
|
|
|
, kxmlgui
|
|
|
|
|
|
|
|
, bison
|
|
|
|
, boost
|
|
|
|
, eigen
|
|
|
|
, exiv2
|
|
|
|
, flex
|
|
|
|
, jasper
|
2015-10-04 01:07:00 +01:00
|
|
|
, lcms2
|
2017-02-18 17:55:57 +00:00
|
|
|
, lensfun
|
|
|
|
, libgphoto2
|
|
|
|
, libkipi
|
|
|
|
, liblqr1
|
2017-04-17 21:28:20 +01:00
|
|
|
, libqtav
|
2017-02-18 17:55:57 +00:00
|
|
|
, libusb1
|
|
|
|
, marble
|
|
|
|
, mysql
|
|
|
|
, opencv
|
|
|
|
, threadweaver
|
|
|
|
|
|
|
|
# For panorama and focus stacking
|
|
|
|
, enblend-enfuse
|
|
|
|
, hugin
|
|
|
|
, gnumake
|
|
|
|
|
|
|
|
, oxygen
|
2015-03-15 13:55:32 +00:00
|
|
|
}:
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
mkDerivation rec {
|
2017-02-18 17:55:57 +00:00
|
|
|
name = "digikam-${version}";
|
|
|
|
version = "5.4.0";
|
2010-02-10 15:06:50 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.kde.org/stable/digikam/${name}.tar.xz";
|
|
|
|
sha256 = "0dgsgji14l5zvxny36hrfsp889fsfrsbbn9bg57m18404xp903kg";
|
|
|
|
};
|
2010-10-05 18:44:05 +01:00
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules kdoctools wrapGAppsHook ];
|
2017-02-18 17:55:57 +00:00
|
|
|
|
|
|
|
patches = [ ./0001-Disable-fno-operator-names.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bison
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
exiv2
|
|
|
|
flex
|
|
|
|
jasper
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libgphoto2
|
|
|
|
libkipi
|
|
|
|
liblqr1
|
2017-04-17 21:28:20 +01:00
|
|
|
libqtav
|
2017-02-18 17:55:57 +00:00
|
|
|
libusb1
|
|
|
|
mysql
|
|
|
|
opencv
|
2017-05-16 16:56:41 +01:00
|
|
|
];
|
2017-02-18 17:55:57 +00:00
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtxmlpatterns
|
|
|
|
qtsvg
|
|
|
|
qtwebkit
|
|
|
|
|
|
|
|
kconfigwidgets
|
|
|
|
kcoreaddons
|
|
|
|
kfilemetadata
|
|
|
|
knotifications
|
|
|
|
knotifyconfig
|
|
|
|
ktextwidgets
|
|
|
|
kwidgetsaddons
|
|
|
|
kxmlgui
|
|
|
|
|
|
|
|
marble
|
2017-02-18 17:55:57 +00:00
|
|
|
oxygen
|
2017-05-16 16:56:41 +01:00
|
|
|
threadweaver
|
2015-03-15 13:55:32 +00:00
|
|
|
];
|
2010-10-12 08:49:24 +01:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
enableParallelBuilding = true;
|
2012-01-19 20:28:13 +00:00
|
|
|
|
2017-02-18 17:55:57 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
|
|
|
|
"-DLIBUSB_INCLUDE_DIR=${libusb1.dev}/include/libusb-1.0"
|
|
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
|
|
"-DENABLE_INTERNALMYSQL=1"
|
2017-04-17 21:28:20 +01:00
|
|
|
"-DENABLE_MEDIAPLAYER=1"
|
2017-02-18 17:55:57 +00:00
|
|
|
];
|
2015-10-04 01:07:00 +01:00
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]})
|
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 01:07:00 +01:00
|
|
|
'';
|
|
|
|
|
2017-05-16 16:56:41 +01:00
|
|
|
meta = with lib; {
|
2010-02-10 15:06:50 +00:00
|
|
|
description = "Photo Management Program";
|
2017-05-16 16:56:41 +01:00
|
|
|
license = licenses.gpl2;
|
2010-02-10 23:38:02 +00:00
|
|
|
homepage = http://www.digikam.org;
|
2017-05-16 16:56:41 +01:00
|
|
|
maintainers = with maintainers; [ the-kenny ];
|
|
|
|
platforms = platforms.linux;
|
2010-02-10 15:06:50 +00:00
|
|
|
};
|
2017-02-18 17:55:57 +00:00
|
|
|
}
|