2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-30 08:33:03 +00:00
|
|
|
, fetchFromGitHub
|
2021-09-18 10:52:07 +00:00
|
|
|
, cmake
|
2020-11-30 08:33:03 +00:00
|
|
|
, SDL
|
|
|
|
, ffmpeg
|
|
|
|
, frei0r
|
|
|
|
, libjack2
|
|
|
|
, libdv
|
|
|
|
, libsamplerate
|
|
|
|
, libvorbis
|
|
|
|
, libxml2
|
|
|
|
, movit
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-11-30 08:33:03 +00:00
|
|
|
, sox
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, fftw
|
|
|
|
, vid-stab
|
|
|
|
, opencv3
|
|
|
|
, ladspa-sdk
|
2022-03-05 16:20:37 +00:00
|
|
|
, gitUpdater
|
2020-11-30 08:33:03 +00:00
|
|
|
, ladspaPlugins
|
|
|
|
, mkDerivation
|
|
|
|
, which
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mlt";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "7.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mltframework";
|
|
|
|
repo = "mlt";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-r8lvzz083WWlDtjvlsPwvOgplx2lPPkDDf3t0G9PqAQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-11-30 08:33:03 +00:00
|
|
|
SDL
|
|
|
|
ffmpeg
|
|
|
|
frei0r
|
|
|
|
libjack2
|
|
|
|
libdv
|
|
|
|
libsamplerate
|
|
|
|
libvorbis
|
|
|
|
libxml2
|
|
|
|
movit
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
sox
|
|
|
|
fftw
|
|
|
|
vid-stab
|
|
|
|
opencv3
|
2020-04-24 23:36:52 +00:00
|
|
|
ladspa-sdk
|
2020-11-30 08:33:03 +00:00
|
|
|
ladspaPlugins
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ cmake which pkg-config ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
|
|
|
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1"
|
|
|
|
"--prefix LADSPA_PATH : ${ladspaPlugins}/lib/ladspa"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$dev"/lib/pkgconfig/mlt-framework-7.pc \
|
|
|
|
--replace '=''${prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
|
|
|
inherit ffmpeg;
|
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
2020-10-07 09:15:18 +00:00
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source multimedia framework, designed for television broadcasting";
|
|
|
|
homepage = "https://www.mltframework.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|