From a386398be634ea0fe351ca0ac17c5452bcd769f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 30 Apr 2010 13:12:07 +0000 Subject: [PATCH] Adding kdenlive, and as a side effect, mlt. Kdenlive looks for some binaries in PATH, so some dependencies may be fulfilled not by kdenlive nix expression. svn path=/nixpkgs/trunk/; revision=21458 --- pkgs/desktops/kde-4.4/default.nix | 6 +++++ .../kde-4.4/extragear/kdenlive/default.nix | 21 ++++++++++++++++++ pkgs/development/libraries/mlt/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 4 files changed, 54 insertions(+) create mode 100644 pkgs/desktops/kde-4.4/extragear/kdenlive/default.nix create mode 100644 pkgs/development/libraries/mlt/default.nix diff --git a/pkgs/desktops/kde-4.4/default.nix b/pkgs/desktops/kde-4.4/default.nix index 868887b3123d..d74770355e75 100644 --- a/pkgs/desktops/kde-4.4/default.nix +++ b/pkgs/desktops/kde-4.4/default.nix @@ -231,6 +231,12 @@ pkgs.recurseIntoAttrs (rec { inherit automoc4 phonon qimageblitz; }; + kdenlive = import ./extragear/kdenlive { + inherit (pkgs) stdenv fetchurl lib cmake qt4 perl mlt gettext shared_mime_info; + inherit kdelibs soprano; + inherit automoc4 phonon; + }; + kdesvn = import ./extragear/kdesvn { inherit (pkgs) stdenv fetchurl lib cmake qt4 perl gettext apr aprutil subversion db4; inherit kdelibs; diff --git a/pkgs/desktops/kde-4.4/extragear/kdenlive/default.nix b/pkgs/desktops/kde-4.4/extragear/kdenlive/default.nix new file mode 100644 index 000000000000..8af0db2fcc88 --- /dev/null +++ b/pkgs/desktops/kde-4.4/extragear/kdenlive/default.nix @@ -0,0 +1,21 @@ +{stdenv, fetchurl, lib, cmake, qt4, perl, kdelibs, automoc4, phonon, mlt, gettext, +shared_mime_info, soprano}: + +stdenv.mkDerivation { + name = "kdenlive-0.7.7.1"; + src = fetchurl { + url = mirror://sourceforge/kdenlive/kdenlive-0.7.7.1.tar.gz; + sha256 = "047kpzfdmipgnnkbdhcpy5c0kqgpg7yn3qhyd7inlplmyd3i1pfx"; + }; + + buildInputs = [ cmake qt4 perl kdelibs automoc4 phonon mlt gettext + shared_mime_info soprano ]; + + meta = { + description = "Free and open source video editor"; + license = "GPLv2+"; + homepage = http://www.kdenlive.org/; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/development/libraries/mlt/default.nix b/pkgs/development/libraries/mlt/default.nix new file mode 100644 index 000000000000..516da30e2b6f --- /dev/null +++ b/pkgs/development/libraries/mlt/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, SDL, qt, pkgconfig, ffmpeg, libdv}: + +stdenv.mkDerivation { + name = "mlt-0.5.4"; + + src = fetchurl { + url = mirror://sourceforge/mlt/mlt-0.5.4.tar.gz; + sha256 = "12s5znbm6q45r33ymyw1bak3d41xhh72gh9i1pdsgvddr0pizshj"; + }; + + buildInputs = [ qt SDL ffmpeg libdv ]; + + # Mostly taken from: + # http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source/installing-mlt-rendering-engine + configureFlags = [ "--enable-gpl" "--avformat-swscale" ]; + + meta = { + homepage = http://www.mltframework.org/; + description = "Open source multimedia framework, designed for television broadcasting"; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 719d7d539d71..2d30ede84075 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4735,6 +4735,11 @@ let inherit fetchurl stdenv flex bison freetype zlib libpng perl; }; + mlt = import ../development/libraries/mlt { + inherit fetchurl stdenv pkgconfig SDL ffmpeg libdv; + qt = qt4; + }; + mpeg2dec = import ../development/libraries/mpeg2dec { inherit fetchurl stdenv; };