2017-06-02 17:49:52 +02:00
|
|
|
{ mkDerivation
|
2016-08-06 14:57:59 +02:00
|
|
|
, lib
|
|
|
|
, extra-cmake-modules
|
2019-08-06 18:34:40 +02:00
|
|
|
, breeze-icons
|
|
|
|
, breeze-qt5
|
2016-08-06 14:57:59 +02:00
|
|
|
, kdoctools
|
|
|
|
, kconfig
|
|
|
|
, kcrash
|
|
|
|
, kguiaddons
|
|
|
|
, kiconthemes
|
|
|
|
, ki18n
|
|
|
|
, kinit
|
|
|
|
, kdbusaddons
|
|
|
|
, knotifications
|
|
|
|
, knewstuff
|
|
|
|
, karchive
|
|
|
|
, knotifyconfig
|
|
|
|
, kplotting
|
|
|
|
, ktextwidgets
|
|
|
|
, mlt
|
2018-02-25 03:23:58 +01:00
|
|
|
, shared-mime-info
|
2016-08-06 14:57:59 +02:00
|
|
|
, libv4l
|
2016-08-12 11:38:37 +02:00
|
|
|
, kfilemetadata
|
2019-08-06 18:34:40 +02:00
|
|
|
, ffmpeg-full
|
|
|
|
, frei0r
|
2017-03-03 15:32:26 +01:00
|
|
|
, phonon-backend-gstreamer
|
2017-10-24 13:41:09 +02:00
|
|
|
, qtdeclarative
|
2020-11-01 17:54:20 +01:00
|
|
|
, qtmultimedia
|
2021-04-25 13:56:29 +02:00
|
|
|
, qtnetworkauth
|
2020-07-13 21:48:47 +02:00
|
|
|
, qtquickcontrols2
|
2017-10-24 13:41:09 +02:00
|
|
|
, qtscript
|
2019-04-22 23:25:18 +02:00
|
|
|
, rttr
|
|
|
|
, kpurpose
|
|
|
|
, kdeclarative
|
2020-06-18 10:39:03 +02:00
|
|
|
, wrapGAppsHook
|
2016-08-06 14:57:59 +02:00
|
|
|
}:
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation {
|
2020-12-25 00:05:07 +01:00
|
|
|
pname = "kdenlive";
|
2016-08-06 14:57:59 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
extra-cmake-modules
|
|
|
|
kdoctools
|
|
|
|
];
|
|
|
|
buildInputs = [
|
2019-08-06 18:34:40 +02:00
|
|
|
breeze-icons
|
|
|
|
breeze-qt5
|
2016-08-12 11:38:37 +02:00
|
|
|
kconfig
|
|
|
|
kcrash
|
2017-05-17 21:26:11 +02:00
|
|
|
kdbusaddons
|
|
|
|
kfilemetadata
|
2016-08-06 14:57:59 +02:00
|
|
|
kguiaddons
|
2017-05-17 21:26:11 +02:00
|
|
|
ki18n
|
2016-08-06 14:57:59 +02:00
|
|
|
kiconthemes
|
2016-08-12 11:38:37 +02:00
|
|
|
kinit
|
2016-08-06 14:57:59 +02:00
|
|
|
knotifications
|
|
|
|
knewstuff
|
|
|
|
karchive
|
|
|
|
knotifyconfig
|
|
|
|
kplotting
|
|
|
|
ktextwidgets
|
|
|
|
mlt
|
2017-05-17 21:26:11 +02:00
|
|
|
phonon-backend-gstreamer
|
2017-10-24 13:41:09 +02:00
|
|
|
qtdeclarative
|
2020-11-01 17:54:20 +01:00
|
|
|
qtmultimedia
|
2021-04-25 13:56:29 +02:00
|
|
|
qtnetworkauth
|
2020-07-13 21:48:47 +02:00
|
|
|
qtquickcontrols2
|
2017-05-17 21:26:11 +02:00
|
|
|
qtscript
|
2018-02-25 03:23:58 +01:00
|
|
|
shared-mime-info
|
2016-08-06 14:57:59 +02:00
|
|
|
libv4l
|
2019-08-06 18:34:40 +02:00
|
|
|
ffmpeg-full
|
|
|
|
frei0r
|
2019-04-22 23:25:18 +02:00
|
|
|
rttr
|
|
|
|
kpurpose
|
|
|
|
kdeclarative
|
2020-06-18 10:39:03 +02:00
|
|
|
wrapGAppsHook
|
2016-08-06 14:57:59 +02:00
|
|
|
];
|
2020-04-01 08:42:37 +02: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
|
|
|
|
patches = [ ./mlt-path.patch ./ffmpeg-path.patch ];
|
2019-09-11 05:42:40 +02:00
|
|
|
inherit mlt;
|
2020-04-01 08:42:37 +02:00
|
|
|
ffmpeg = ffmpeg-full;
|
2017-05-17 21:26:11 +02: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)|'
|
2019-09-11 05:42:40 +02:00
|
|
|
substituteAllInPlace src/kdenlivesettings.kcfg
|
2017-05-17 21:26:11 +02:00
|
|
|
'';
|
2020-11-01 17:53:43 +01:00
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-04-01 08:42:37 +02: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 17:53:43 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2016-08-06 14:57:59 +02:00
|
|
|
meta = {
|
2021-09-18 11:48:23 +02:00
|
|
|
homepage = "https://apps.kde.org/kdenlive/";
|
|
|
|
description = "Video editor";
|
2016-08-12 11:38:37 +02:00
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
2021-06-09 11:29:28 +02:00
|
|
|
maintainers = with lib.maintainers; [ turion ];
|
2016-08-06 14:57:59 +02:00
|
|
|
};
|
|
|
|
}
|