nixpkgs/pkgs/applications/kde/kdenlive.nix

105 lines
1.9 KiB
Nix
Raw Normal View History

{ mkDerivation
, lib
, extra-cmake-modules
, breeze-icons
, breeze-qt5
, kdoctools
, kconfig
, kcrash
, kguiaddons
, kiconthemes
, ki18n
, kinit
, kdbusaddons
, knotifications
, knewstuff
, karchive
, knotifyconfig
, kplotting
, ktextwidgets
, mlt
, shared-mime-info
, libv4l
2016-08-12 10:38:37 +01:00
, kfilemetadata
, ffmpeg-full
, frei0r
, phonon-backend-gstreamer
2017-10-24 12:41:09 +01:00
, qtdeclarative
, qtmultimedia
2020-07-13 20:48:47 +01:00
, qtquickcontrols2
2017-10-24 12:41:09 +01:00
, qtscript
2019-04-22 22:25:18 +01:00
, rttr
, kpurpose
, kdeclarative
2020-06-18 09:39:03 +01:00
, wrapGAppsHook
}:
2017-05-16 16:56:41 +01:00
mkDerivation {
name = "kdenlive";
nativeBuildInputs = [
extra-cmake-modules
kdoctools
];
buildInputs = [
breeze-icons
breeze-qt5
2016-08-12 10:38:37 +01:00
kconfig
kcrash
2017-05-17 20:26:11 +01:00
kdbusaddons
kfilemetadata
kguiaddons
2017-05-17 20:26:11 +01:00
ki18n
kiconthemes
2016-08-12 10:38:37 +01:00
kinit
knotifications
knewstuff
karchive
knotifyconfig
kplotting
ktextwidgets
mlt
2017-05-17 20:26:11 +01:00
phonon-backend-gstreamer
2017-10-24 12:41:09 +01:00
qtdeclarative
qtmultimedia
2020-07-13 20:48:47 +01:00
qtquickcontrols2
2017-05-17 20:26:11 +01:00
qtscript
shared-mime-info
libv4l
ffmpeg-full
frei0r
2019-04-22 22:25:18 +01:00
rttr
kpurpose
kdeclarative
2020-06-18 09:39:03 +01:00
wrapGAppsHook
];
# 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 ];
inherit mlt;
ffmpeg = ffmpeg-full;
2017-05-17 20:26:11 +01: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)|'
substituteAllInPlace src/kdenlivesettings.kcfg
2017-05-17 20:26:11 +01:00
'';
2020-11-01 16:53:43 +00:00
dontWrapGApps = true;
# 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[@]}")
'';
meta = {
2016-08-12 10:38:37 +01:00
license = with lib.licenses; [ gpl2Plus ];
};
}