at 15.09-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl, SDL, ffmpeg, frei0r, libjack2, libdv, libsamplerate 2, libvorbis, libxml2, makeWrapper, movit, pkgconfig, qt, sox 3}: 4 5stdenv.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}