2e0589b4ca
Upstream changes to the build system required adjusting many packages' dependencies. On the Nixpkgs side, we no longer propagate the dependency on cmake (to reduce closure size), so downstream dependencies had to be adjusted for most packages that depend on kdelibs.
44 lines
1.4 KiB
Nix
44 lines
1.4 KiB
Nix
{ stdenv, fetchurl, automoc4, boost, shared_desktop_ontologies, cmake
|
|
, eigen, lcms, gettext, jasper, kdelibs, kdepimlibs, lensfun
|
|
, libgphoto2, libjpeg, libkdcraw, libkexiv2, libkipi, libpgf, libtiff
|
|
, libusb1, liblqr1, marble, mysql, opencv, perl, phonon, pkgconfig
|
|
, qca2, qimageblitz, qjson, qt4, soprano
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "digikam-4.12.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.kde.org/stable/digikam/${name}.tar.bz2";
|
|
sha256 = "081ldsaf3frf5khznjd3sxkjmi4dyp6w6nqnc2a0agkk0kxkl10m";
|
|
};
|
|
|
|
nativeBuildInputs = [ automoc4 cmake gettext perl pkgconfig ];
|
|
|
|
buildInputs = [
|
|
boost eigen jasper kdelibs kdepimlibs lcms lensfun libgphoto2
|
|
libjpeg libkdcraw libkexiv2 libkipi liblqr1 libpgf libtiff marble
|
|
mysql.lib opencv phonon qca2 qimageblitz qjson qt4
|
|
shared_desktop_ontologies soprano
|
|
];
|
|
|
|
# Make digikam find some FindXXXX.cmake
|
|
KDEDIRS="${marble}:${qjson}";
|
|
|
|
# Help digiKam find libusb, otherwise gphoto2 support is disabled
|
|
cmakeFlags = [
|
|
"-DLIBUSB_LIBRARIES=${libusb1}/lib"
|
|
"-DLIBUSB_INCLUDE_DIR=${libusb1}/include/libusb-1.0"
|
|
"-DDIGIKAMSC_COMPILE_LIBKFACE=ON"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Photo Management Program";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
homepage = http://www.digikam.org;
|
|
maintainers = with stdenv.lib.maintainers; [ goibhniu viric urkud ];
|
|
inherit (kdelibs.meta) platforms;
|
|
};
|
|
}
|