2022-09-14 18:05:37 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
, extra-cmake-modules
|
|
|
|
, kdoctools
|
|
|
|
, wrapGAppsHook
|
|
|
|
, exiv2
|
|
|
|
, ffmpeg
|
|
|
|
, libkdcraw
|
|
|
|
, phonon
|
|
|
|
, libvlc
|
|
|
|
, kconfig
|
|
|
|
, kiconthemes
|
|
|
|
, kio
|
|
|
|
, kinit
|
|
|
|
, kpurpose
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "kphotoalbum";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "5.11.0";
|
2022-09-14 18:05:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/${pname}/${version}/${pname}-${version}.tar.xz";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-NWtOIHJXtc8PlltYbbp2YwDf/3QI3MdHNDX7WVQMig4=";
|
2022-09-14 18:05:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# not sure if we really need phonon when we have vlc, but on KDE it's bound to
|
|
|
|
# be on the system anyway, so there is no real harm including it
|
|
|
|
buildInputs = [ exiv2 phonon libvlc ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ kconfig kiconthemes kio kinit kpurpose libkdcraw ];
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Efficient image organization and indexing";
|
|
|
|
homepage = "https://www.kphotoalbum.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
inherit (kconfig.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|