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
|
|
|
|
, genericUpdater
|
|
|
|
, common-updater-scripts
|
|
|
|
, 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";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "7.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mltframework";
|
|
|
|
repo = "mlt";
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "13c5miph9jjbz69dhy0zvbkk5zbb05dr3vraaci0d5fdbrlhyscf";
|
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
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-11-30 08:33:03 +00:00
|
|
|
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
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [ cmake which ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
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
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit ffmpeg;
|
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
passthru.updateScript = genericUpdater {
|
|
|
|
inherit pname version;
|
|
|
|
versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|