git.iko.soy/typeable/nixpkgs
on master help sign in
digikam: 5.4.0 -> 5.7.0

The build for the version 5.4.0 of digiKam has been broken at the time prior to this commit, which is the main reason for this update as I don't think it makes sense to fix the build for 5.4.0 when we're going to update it anyway. A lot has changed upstream between version 5.4.0 and 5.7.0 and it's too much to be summarized here, so here are the URLs to the upstream announcements: * https://www.digikam.org/news/2017-03-14_digiKam_5.5.0_is_released/ * https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/ * https://www.digikam.org/news/2017-09-11-5.7.0_release_announcement/ On the packaging side, we now no longer have the patch that disables -fno-operator-names because the build runs fine without that patch (which didn't even apply but I didn't check why) and IMO it doesn't make sense to rebase that patch for no reason. Additionally, there were build time dependencies lurking around in propagatedBuildInputs, which is kinda pointless and the application just runs fine if those dependencies are listed in buildInputs. While looking for clues about why that might be necessary I haven't found any comment about it in the source nor a clarification within the message of the commit where this has been introduced. The commit in question is be7b7d908f82e8ab16c43ffd0e240addd6f4018a. Apart from these changes, the rest is just adding a few dependencies (kcalcore, libksane, mesa and pcre) to get less errors during cmakeConfigurePhase. I've tested digiKam by playing around within a VM using photos I netcat'ed into it and it works so far. The VM was built using: nix-build nixos --arg configuration '{ pkgs, ... }: { imports = [ ./nixos/tests/common/user-account.nix ]; environment.systemPackages = [ pkgs.digikam ]; services.xserver.enable = true; services.xserver.displayManager.sddm.enable = true; services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.default = "plasma5"; virtualisation.memorySize = 1024; }' -A vm What I didn't test however was whether importing from a camera would work (as I don't have one), but aside from that, the application seems to run fine compared to the fact that it didn't even build until now :-) Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @the-kenny, @urkud, @viric, @cillianderoiste, @ttuegel Cc: @jraygauthier, @fkz, @sh01, @lsix

commit27b7192726e565b463fd5af74842a6d0287fec48 authoraszlig <aszlig@redmoonstudios.org> dateThu 19 Oct 2017, 03:04 (9 years ago) parenta8989e6
3 files changed+13−35
pkgs/applications/graphics/digikam/0001-Disable-fno-operator-names.patch−25 pkgs/applications/graphics/digikam/default.nix+12−10 pkgs/top-level/all-packages.nix+1
pkgs/applications/graphics/digikam/0001-Disable-fno-operator-names.patchdeleted−25
@@ -1,25 +0,0 @@
1−From beb9ad0149adfe448acfa650fb3e171d5fdd7e27 Mon Sep 17 00:00:00 2001
2−From: Moritz Ulrich <moritz@tarn-vedra.de>
3−Date: Wed, 22 Feb 2017 15:28:11 +0100
4−Subject: [PATCH] Disable `-fno-operator-names`
5−
6−---
7− core/CMakeLists.txt | 2 ++
8− 1 file changed, 2 insertions(+)
9−
10−diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
11−index 89e06827e6..01d0c88ea9 100644
12−--- a/core/CMakeLists.txt
13−+++ b/core/CMakeLists.txt
14−@@ -98,6 +98,8 @@ include(MacroOpenCV)
15− include(MacroJPEG)
16− include(MacroBoolTo01)
17−
18−+string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
19−+
20− # ==================================================================================================
21−
22− option(ENABLE_OPENCV3 "Build digiKam with OpenCV3 instead OpenCV2 (default=OFF)" OFF)
23−--
24−2.11.1
25−
pkgs/applications/graphics/digikam/default.nix+12−10
@@ -8,6 +8,7 @@
88, qtsvg
99, qtwebkit
1010
11+, kcalcore
1112, kconfigwidgets
1213, kcoreaddons
1314, kdoctools
@@ -28,12 +29,15 @@
2829, lensfun
2930, libgphoto2
3031, libkipi
32+, libksane
3133, liblqr1
3234, libqtav
3335, libusb1
36+, mesa
3437, marble
3538, mysql
36−, opencv
39+, opencv3
40+, pcre
3741, threadweaver
3842
3943# For panorama and focus stacking
@@ -46,17 +50,15 @@
4650
4751mkDerivation rec {
4852 name = "digikam-${version}";
49− version = "5.4.0";
53+ version = "5.7.0";
5054
5155 src = fetchurl {
5256 url = "http://download.kde.org/stable/digikam/${name}.tar.xz";
53− sha256 = "0dgsgji14l5zvxny36hrfsp889fsfrsbbn9bg57m18404xp903kg";
57+ sha256 = "1xah079g47fih8l9qy1ifppfvmq5yms5y1z54nvxdyz8nsszy19n";
5458 };
5559
5660 nativeBuildInputs = [ cmake extra-cmake-modules kdoctools wrapGAppsHook ];
5761
58− patches = [ ./0001-Disable-fno-operator-names.patch ];
59−
6062 buildInputs = [
6163 bison
6264 boost
@@ -68,19 +70,21 @@ mkDerivation rec {
6870 lensfun
6971 libgphoto2
7072 libkipi
73+ libksane
7174 liblqr1
7275 libqtav
7376 libusb1
77+ mesa
7478 mysql
75− opencv
76− ];
79+ opencv3
80+ pcre
7781
78− propagatedBuildInputs = [
7982 qtbase
8083 qtxmlpatterns
8184 qtsvg
8285 qtwebkit
8386
87+ kcalcore
8488 kconfigwidgets
8589 kcoreaddons
8690 kfilemetadata
@@ -98,8 +102,6 @@ mkDerivation rec {
98102 enableParallelBuilding = true;
99103
100104 cmakeFlags = [
101− "-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
102− "-DLIBUSB_INCLUDE_DIR=${libusb1.dev}/include/libusb-1.0"
103105 "-DENABLE_MYSQLSUPPORT=1"
104106 "-DENABLE_INTERNALMYSQL=1"
105107 "-DENABLE_MEDIAPLAYER=1"
pkgs/top-level/all-packages.nix+1
@@ -17576,6 +17576,7 @@ with pkgs;
1757617576
1757717577 digikam = libsForQt5.callPackage ../applications/graphics/digikam {
1757817578 inherit (plasma5) oxygen;
17579+ inherit (kdeApplications) kcalcore;
1757917580 boost = boost160;
1758017581 };
1758117582