2017-06-02 15:49:52 +00:00
|
|
|
{
|
|
|
|
mkDerivation,
|
2024-07-04 12:43:36 +00:00
|
|
|
substituteAll,
|
2016-08-06 12:57:59 +00:00
|
|
|
lib,
|
|
|
|
extra-cmake-modules,
|
2019-08-06 16:34:40 +00:00
|
|
|
breeze-icons,
|
|
|
|
breeze-qt5,
|
2016-08-06 12:57:59 +00:00
|
|
|
kdoctools,
|
|
|
|
kconfig,
|
|
|
|
kcrash,
|
|
|
|
kguiaddons,
|
|
|
|
kiconthemes,
|
|
|
|
ki18n,
|
|
|
|
kinit,
|
|
|
|
kdbusaddons,
|
|
|
|
knotifications,
|
|
|
|
knewstuff,
|
|
|
|
karchive,
|
|
|
|
knotifyconfig,
|
|
|
|
kplotting,
|
|
|
|
ktextwidgets,
|
2023-08-24 10:59:41 +00:00
|
|
|
mediainfo,
|
2016-08-06 12:57:59 +00:00
|
|
|
mlt,
|
2018-02-25 02:23:58 +00:00
|
|
|
shared-mime-info,
|
2016-08-06 12:57:59 +00:00
|
|
|
libv4l,
|
2016-08-12 09:38:37 +00:00
|
|
|
kfilemetadata,
|
2019-08-06 16:34:40 +00:00
|
|
|
ffmpeg-full,
|
|
|
|
frei0r,
|
2017-03-03 14:32:26 +00:00
|
|
|
phonon-backend-gstreamer,
|
2017-10-24 11:41:09 +00:00
|
|
|
qtdeclarative,
|
2020-11-01 16:54:20 +00:00
|
|
|
qtmultimedia,
|
2021-04-25 11:56:29 +00:00
|
|
|
qtnetworkauth,
|
2020-07-13 19:48:47 +00:00
|
|
|
qtquickcontrols2,
|
2017-10-24 11:41:09 +00:00
|
|
|
qtscript,
|
2019-04-22 21:25:18 +00:00
|
|
|
rttr,
|
|
|
|
kpurpose,
|
|
|
|
kdeclarative,
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3,
|
2024-03-26 22:57:27 +00:00
|
|
|
glaxnimate,
|
2016-08-06 12:57:59 +00:00
|
|
|
}:
|
|
|
|
|
2023-12-07 11:33:28 +00:00
|
|
|
let
|
|
|
|
mlt-full = mlt.override {
|
|
|
|
ffmpeg = ffmpeg-full;
|
|
|
|
};
|
|
|
|
in
|
2017-05-16 15:56:41 +00:00
|
|
|
mkDerivation {
|
2020-12-24 23:05:07 +00:00
|
|
|
pname = "kdenlive";
|
2016-08-06 12:57:59 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
kdoctools
|
|
|
|
];
|
|
|
|
buildInputs = [
|
2019-08-06 16:34:40 +00:00
|
|
|
breeze-icons
|
|
|
|
breeze-qt5
|
2016-08-12 09:38:37 +00:00
|
|
|
kconfig
|
|
|
|
kcrash
|
2017-05-17 19:26:11 +00:00
|
|
|
kdbusaddons
|
|
|
|
kfilemetadata
|
2016-08-06 12:57:59 +00:00
|
|
|
kguiaddons
|
2017-05-17 19:26:11 +00:00
|
|
|
ki18n
|
2016-08-06 12:57:59 +00:00
|
|
|
kiconthemes
|
2016-08-12 09:38:37 +00:00
|
|
|
kinit
|
2016-08-06 12:57:59 +00:00
|
|
|
knotifications
|
|
|
|
knewstuff
|
|
|
|
karchive
|
|
|
|
knotifyconfig
|
|
|
|
kplotting
|
|
|
|
ktextwidgets
|
2023-08-24 10:59:41 +00:00
|
|
|
mediainfo
|
2023-12-07 11:33:28 +00:00
|
|
|
mlt-full
|
2017-05-17 19:26:11 +00:00
|
|
|
phonon-backend-gstreamer
|
2017-10-24 11:41:09 +00:00
|
|
|
qtdeclarative
|
2020-11-01 16:54:20 +00:00
|
|
|
qtmultimedia
|
2021-04-25 11:56:29 +00:00
|
|
|
qtnetworkauth
|
2020-07-13 19:48:47 +00:00
|
|
|
qtquickcontrols2
|
2017-05-17 19:26:11 +00:00
|
|
|
qtscript
|
2018-02-25 02:23:58 +00:00
|
|
|
shared-mime-info
|
2016-08-06 12:57:59 +00:00
|
|
|
libv4l
|
2019-08-06 16:34:40 +00:00
|
|
|
ffmpeg-full
|
|
|
|
frei0r
|
2019-04-22 21:25:18 +00:00
|
|
|
rttr
|
|
|
|
kpurpose
|
|
|
|
kdeclarative
|
2024-04-26 20:24:03 +00:00
|
|
|
wrapGAppsHook3
|
2024-07-02 07:46:12 +00:00
|
|
|
];
|
2024-07-04 12:43:36 +00:00
|
|
|
|
2020-04-01 06:42:37 +00:00
|
|
|
# Both MLT and FFMpeg paths must be set or Kdenlive will complain that it
|
|
|
|
# doesn't find them. See:
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/83885
|
2024-07-04 12:43:36 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./dependency-paths.patch;
|
|
|
|
inherit mediainfo glaxnimate;
|
|
|
|
ffmpeg = ffmpeg-full;
|
|
|
|
mlt = mlt-full;
|
|
|
|
})
|
|
|
|
];
|
2023-08-24 10:59:41 +00:00
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
postPatch =
|
|
|
|
# Module Qt5::Concurrent must be included in `find_package` before it is used.
|
|
|
|
''
|
|
|
|
sed -i CMakeLists.txt -e '/find_package(Qt5 REQUIRED/ s|)| Concurrent)|'
|
|
|
|
'';
|
2020-11-01 16:53:43 +00:00
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-04-01 06:42:37 +00:00
|
|
|
# Frei0r path needs to be set too or Kdenlive will complain. See:
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/83885
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/29614#issuecomment-488849325
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
|
|
|
|
];
|
2020-11-01 16:53:43 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2016-08-06 12:57:59 +00:00
|
|
|
meta = {
|
2021-09-18 09:48:23 +00:00
|
|
|
homepage = "https://apps.kde.org/kdenlive/";
|
|
|
|
description = "Video editor";
|
2016-08-12 09:38:37 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
2021-06-09 09:29:28 +00:00
|
|
|
maintainers = with lib.maintainers; [ turion ];
|
2016-08-06 12:57:59 +00:00
|
|
|
};
|
|
|
|
}
|