git.iko.soy/typeable/nixpkgs
on master help sign in
mlt: 0.9.6 -> 6.2.0 (#17725)

The old version with qt4 is kept around for kdenlive dependency.

commite444532046be5180cd57e0b991921d8da17d9934 authorTomas Hlavaty <tom@logand.com> dateWed 17 Aug 2016, 16:09 (10 years ago) parent66a3f0e
3 files changed+55−9
pkgs/development/libraries/mlt/default.nix+13−8 pkgs/development/libraries/mlt/qt-4.nix+39 pkgs/top-level/all-packages.nix+3−1
pkgs/development/libraries/mlt/default.nix+13−8
@@ -1,19 +1,24 @@
1−{ stdenv, fetchurl, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
2−, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox
1+{ stdenv, fetchFromGitHub, makeWrapper
2+, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
3+, libvorbis, libxml2, movit, pkgconfig, sox
4+, gtk2
35}:
46
57stdenv.mkDerivation rec {
68 name = "mlt-${version}";
7− version = "0.9.6";
9+ version = "6.2.0";
810
9− src = fetchurl {
10− url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
11− sha256 = "0s8ypg0q50zfcmq527y8cbdvzxhiqidm1923k28ar8jqmjp45ssh";
11+ src = fetchFromGitHub {
12+ owner = "mltframework";
13+ repo = "mlt";
14+ rev = "v${version}";
15+ sha256 = "17jwz1lf9ilaxvgvhg7z86dhcsk95m4wlszy4gn7wab2ns5zhdm7";
1216 };
1317
1418 buildInputs = [
1519 SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
16− makeWrapper movit pkgconfig qt sox
20+ makeWrapper movit pkgconfig sox
21+ gtk2
1722 ];
1823
1924 # Mostly taken from:
@@ -33,7 +38,7 @@ stdenv.mkDerivation rec {
3338 description = "Open source multimedia framework, designed for television broadcasting";
3439 homepage = http://www.mltframework.org/;
3540 license = licenses.gpl3;
36− maintainers = [ maintainers.goibhniu ];
41+ maintainers = [ maintainers.tohl ];
3742 platforms = platforms.linux;
3843 };
3944}
pkgs/development/libraries/mlt/qt-4.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate
2+, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "mlt-${version}";
7+ version = "0.9.6";
8+
9+ src = fetchurl {
10+ url = "https://github.com/mltframework/mlt/archive/v${version}.tar.gz";
11+ sha256 = "0s8ypg0q50zfcmq527y8cbdvzxhiqidm1923k28ar8jqmjp45ssh";
12+ };
13+
14+ buildInputs = [
15+ SDL ffmpeg frei0r libjack2 libdv libsamplerate libvorbis libxml2
16+ makeWrapper movit pkgconfig qt sox
17+ ];
18+
19+ # Mostly taken from:
20+ # http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine
21+ configureFlags = [
22+ "--avformat-swscale" "--enable-gpl" "--enable-gpl" "--enable-gpl3"
23+ "--enable-opengl"
24+ ];
25+
26+ enableParallelBuilding = true;
27+
28+ postInstall = ''
29+ wrapProgram $out/bin/melt --prefix FREI0R_PATH : ${frei0r}/lib/frei0r-1
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ description = "Open source multimedia framework, designed for television broadcasting";
34+ homepage = http://www.mltframework.org/;
35+ license = licenses.gpl3;
36+ maintainers = [ maintainers.goibhniu ];
37+ platforms = platforms.linux;
38+ };
39+}
pkgs/top-level/all-packages.nix+3−1
@@ -8765,7 +8765,9 @@ in
87658765 withGUI = false;
87668766 };
87678767
8768− mlt-qt4 = callPackage ../development/libraries/mlt {
8768+ mlt = callPackage ../development/libraries/mlt {};
8769+
8770+ mlt-qt4 = callPackage ../development/libraries/mlt/qt-4.nix {
87698771 ffmpeg = ffmpeg_2;
87708772 qt = qt4;
87718773 };