[Backport release-26.11] digikam: 9.1.0 -> 9.2.0 (#596617)

This commit is contained in:
nixpkgs-ci[bot]
2026-12-02 19:45:08 +00:00
committed by GitHub
2 changed files with 8 additions and 32 deletions

View File

@@ -1,16 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f0dbdd9aa5..368d481fd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,11 +237,6 @@ if(BUILD_TESTING)
# For CI runners to run tests, the following custom target serves to perform the download automatically.
# If the directory "test-data" has already been created, the target becomes a "no-op".
#
- add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/test-data
- COMMENT "Checkout unit-test data repository. Please wait..."
- COMMAND git
- ARGS clone https://invent.kde.org/graphics/digikam-test-data.git ${CMAKE_SOURCE_DIR}/test-data
- )
add_custom_target(test-data ALL DEPENDS ${CMAKE_SOURCE_DIR}/test-data)
endif()

View File

@@ -1,6 +1,5 @@
{
stdenv,
config,
lib,
fetchFromGitLab,
fetchgit,
@@ -36,8 +35,7 @@
x265,
libGLX,
libGLU,
cudaPackages,
enableCuda ? config.cudaSupport,
llama-cpp,
kdePackages,
@@ -63,20 +61,16 @@ in
stdenv.mkDerivation (finalAttrs: {
pname = "digikam";
version = "9.1.0";
version = "9.2.0";
src = fetchFromGitLab {
domain = "invent.kde.org";
owner = "graphics";
repo = "digikam";
tag = "v${finalAttrs.version}";
hash = "sha256-rrAqHSG7AsyG8DM0zYfyuGyu6jI/ZDmSYco91nhdmhQ=";
hash = "sha256-fTngfAOLJdI1RUXXRTsemxKzmScdydUIMlqi7IcLp9g=";
};
patches = [
./disable-tests-download.patch
];
strictDeps = true;
nativeBuildInputs = [
@@ -125,6 +119,7 @@ stdenv.mkDerivation (finalAttrs: {
x265
libGLX
libGLU
llama-cpp
kdePackages.qtbase
kdePackages.qtnetworkauth
@@ -156,27 +151,24 @@ stdenv.mkDerivation (finalAttrs: {
checkInputs = [ kdePackages.qtdeclarative ];
postConfigure = lib.optionalString finalAttrs.finalPackage.doCheck ''
ln -s ${testData} $cmakeDir/test-data
preConfigure = lib.optionalString finalAttrs.finalPackage.doCheck ''
ln -s ${testData} ./test-data
'';
postPatch = ''
substituteInPlace \
core/dplugins/bqm/custom/userscript/userscript.cpp \
core/utilities/import/backend/cameracontroller.cpp \
core/utilities/import/backend/cameracontroller_execute.cpp \
--replace-fail '"/bin/bash"' ${lib.escapeShellArg "\"${runtimeShell}\""}
'';
cmakeFlags = [
(lib.cmakeBool "BUILD_WITH_QT6" true)
(lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck)
(lib.cmakeBool "ENABLE_KFILEMETADATASUPPORT" true)
#(lib.cmakeBool "ENABLE_AKONADICONTACTSUPPORT" true)
(lib.cmakeBool "ENABLE_MEDIAPLAYER" true)
(lib.cmakeBool "ENABLE_APPSTYLES" true)
]
++ lib.optionals enableCuda [
(lib.cmakeFeature "CUDA_TOOLKIT_ROOT_DIR" cudaPackages.cuda_nvcc.outPath)
(lib.cmakeBool "ENABLE_NLSEARCH_LLAMACPP" true)
];
# Tests segfault for some reason…