digikam: move to by-name

This commit is contained in:
éclairevoyant 2024-01-20 11:28:18 -05:00
parent e5bc23348e
commit 179fee0873
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B
2 changed files with 12 additions and 36 deletions

View File

@ -1,25 +1,9 @@
{ mkDerivation, config, lib, fetchpatch, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook
{ stdenv, config, lib, fetchpatch, fetchurl, cmake, doxygen, extra-cmake-modules, wrapGAppsHook
# For `digitaglinktree`
, perl, sqlite
, qtbase
, qtxmlpatterns
, qtsvg
, qtwebengine
, qtnetworkauth
, akonadi-contacts
, kcalendarcore
, kconfigwidgets
, kcoreaddons
, kdoctools
, kfilemetadata
, knotifications
, knotifyconfig
, ktextwidgets
, kwidgetsaddons
, kxmlgui
, libsForQt5
, bison
, boost
@ -32,17 +16,12 @@
, lcms2
, lensfun
, libgphoto2
, libkipi
, libksane
, liblqr1
, libqtav
, libusb1
, marble
, libGL
, libGLU
, opencv
, pcre
, threadweaver
, x265
, jasper
@ -51,14 +30,11 @@
, hugin
, gnumake
, breeze-icons
, oxygen
, cudaSupport ? config.cudaSupport
, cudaPackages ? {}
}:
mkDerivation rec {
stdenv.mkDerivation rec {
pname = "digikam";
version = "8.1.0";
@ -79,7 +55,8 @@ mkDerivation rec {
cmake
doxygen
extra-cmake-modules
kdoctools
libsForQt5.kdoctools
libsForQt5.wrapQtAppsHook
wrapGAppsHook
] ++ lib.optionals cudaSupport (with cudaPackages; [
cuda_nvcc
@ -97,10 +74,7 @@ mkDerivation rec {
lcms2
lensfun
libgphoto2
libkipi
libksane
liblqr1
libqtav
libusb1
libGL
libGLU
@ -108,6 +82,10 @@ mkDerivation rec {
pcre
x265
jasper
] ++ (with libsForQt5; [
libkipi
libksane
libqtav
qtbase
qtxmlpatterns
@ -130,7 +108,7 @@ mkDerivation rec {
marble
oxygen
threadweaver
] ++ lib.optionals cudaSupport (with cudaPackages; [
]) ++ lib.optionals cudaSupport (with cudaPackages; [
cuda_cudart
]);
@ -140,7 +118,7 @@ mkDerivation rec {
"-DENABLE_MEDIAPLAYER=1"
"-DENABLE_QWEBENGINE=on"
"-DENABLE_APPSTYLES=on"
"-DCMAKE_CXX_FLAGS=-I${libksane}/include/KF5" # fix `#include <ksane_version.h>`
"-DCMAKE_CXX_FLAGS=-I${libsForQt5.libksane}/include/KF5" # fix `#include <ksane_version.h>`
];
dontWrapGApps = true;
@ -148,7 +126,7 @@ mkDerivation rec {
preFixup = ''
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
qtWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ gnumake hugin enblend-enfuse ]})
qtWrapperArgs+=(--suffix DK_PLUGIN_PATH : ${placeholder "out"}/${qtbase.qtPluginPrefix}/${pname})
qtWrapperArgs+=(--suffix DK_PLUGIN_PATH : ${placeholder "out"}/${libsForQt5.qtbase.qtPluginPrefix}/${pname})
substituteInPlace $out/bin/digitaglinktree \
--replace "/usr/bin/perl" "${perl}/bin/perl" \
--replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"

View File

@ -37068,8 +37068,6 @@ with pkgs;
conmon-rs = callPackage ../applications/virtualization/conmon-rs { };
digikam = libsForQt5.callPackage ../applications/graphics/digikam { };
drumkv1 = libsForQt5.callPackage ../applications/audio/drumkv1 { };
eureka-ideas = callPackage ../applications/misc/eureka-ideas {