abb357c23e
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 5.9.0 with grep in /nix/store/a0lvk4dyi87si7gdyblvh3zs16s0kp76-digikam-5.9.0 - found 5.9.0 in filename of file in /nix/store/a0lvk4dyi87si7gdyblvh3zs16s0kp76-digikam-5.9.0 - directory tree listing: https://gist.github.com/5e9b0273318688eb36b670f51aa482ec
124 lines
2.0 KiB
Nix
124 lines
2.0 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, cmake, doxygen, extra-cmake-modules, wrapGAppsHook, fetchpatch
|
|
|
|
# For `digitaglinktree`
|
|
, perl, sqlite
|
|
|
|
, qtbase
|
|
, qtxmlpatterns
|
|
, qtsvg
|
|
, qtwebkit
|
|
|
|
, kcalcore
|
|
, kconfigwidgets
|
|
, kcoreaddons
|
|
, kdoctools
|
|
, kfilemetadata
|
|
, knotifications
|
|
, knotifyconfig
|
|
, ktextwidgets
|
|
, kwidgetsaddons
|
|
, kxmlgui
|
|
|
|
, bison
|
|
, boost
|
|
, eigen
|
|
, exiv2
|
|
, flex
|
|
, jasper
|
|
, lcms2
|
|
, lensfun
|
|
, libgphoto2
|
|
, libkipi
|
|
, libksane
|
|
, liblqr1
|
|
, libqtav
|
|
, libusb1
|
|
, marble
|
|
, libGLU_combined
|
|
, mysql
|
|
, opencv3
|
|
, pcre
|
|
, threadweaver
|
|
|
|
# For panorama and focus stacking
|
|
, enblend-enfuse
|
|
, hugin
|
|
, gnumake
|
|
|
|
, oxygen
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
name = "digikam-${version}";
|
|
version = "5.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KDE";
|
|
repo = "digikam";
|
|
rev = "v${version}";
|
|
sha256 = "09diw273h9i7rss89ba82yrfy6jb2njv3k0dknrrg7bb998vrw2d";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake doxygen extra-cmake-modules kdoctools wrapGAppsHook ];
|
|
|
|
buildInputs = [
|
|
bison
|
|
boost
|
|
eigen
|
|
exiv2
|
|
flex
|
|
jasper
|
|
lcms2
|
|
lensfun
|
|
libgphoto2
|
|
libkipi
|
|
libksane
|
|
liblqr1
|
|
libqtav
|
|
libusb1
|
|
libGLU_combined
|
|
opencv3
|
|
pcre
|
|
|
|
qtbase
|
|
qtxmlpatterns
|
|
qtsvg
|
|
qtwebkit
|
|
|
|
kcalcore
|
|
kconfigwidgets
|
|
kcoreaddons
|
|
kfilemetadata
|
|
knotifications
|
|
knotifyconfig
|
|
ktextwidgets
|
|
kwidgetsaddons
|
|
kxmlgui
|
|
|
|
marble
|
|
oxygen
|
|
threadweaver
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_MYSQLSUPPORT=1"
|
|
"-DENABLE_INTERNALMYSQL=1"
|
|
"-DENABLE_MEDIAPLAYER=1"
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]})
|
|
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 = http://www.digikam.org;
|
|
maintainers = with maintainers; [ the-kenny ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|