From 97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Mon, 23 Dec 2013 23:21:43 +0800 Subject: [PATCH 1/6] gstreamer-0.10: move to gstreamer/legacy --- .../gstreamer/{ => legacy}/gnonlin/default.nix | 0 .../{ => legacy}/gst-ffmpeg/default.nix | 0 .../{ => legacy}/gst-plugins-bad/default.nix | 0 .../{ => legacy}/gst-plugins-base/default.nix | 0 .../{ => legacy}/gst-plugins-good/default.nix | 0 .../{ => legacy}/gst-plugins-good/v4l.patch | 0 .../{ => legacy}/gst-plugins-ugly/default.nix | 0 .../{ => legacy}/gst-python/default.nix | 0 .../{ => legacy}/gstreamer/default.nix | 0 .../{ => legacy}/gstreamer/setup-hook.sh | 0 .../{ => legacy}/qt-gstreamer/boost1.48.patch | 0 .../{ => legacy}/qt-gstreamer/default.nix | 0 pkgs/top-level/all-packages.nix | 18 +++++++++--------- 13 files changed, 9 insertions(+), 9 deletions(-) rename pkgs/development/libraries/gstreamer/{ => legacy}/gnonlin/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-ffmpeg/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-bad/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-base/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-good/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-good/v4l.patch (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-plugins-ugly/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gst-python/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gstreamer/default.nix (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/gstreamer/setup-hook.sh (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/qt-gstreamer/boost1.48.patch (100%) rename pkgs/development/libraries/gstreamer/{ => legacy}/qt-gstreamer/default.nix (100%) diff --git a/pkgs/development/libraries/gstreamer/gnonlin/default.nix b/pkgs/development/libraries/gstreamer/legacy/gnonlin/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gnonlin/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gnonlin/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-ffmpeg/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-ffmpeg/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-ffmpeg/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-ffmpeg/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-bad/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-bad/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-bad/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-bad/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-base/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-base/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-good/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-good/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-good/v4l.patch b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/v4l.patch similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-good/v4l.patch rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/v4l.patch diff --git a/pkgs/development/libraries/gstreamer/gst-plugins-ugly/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-plugins-ugly/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix diff --git a/pkgs/development/libraries/gstreamer/gst-python/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gst-python/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix diff --git a/pkgs/development/libraries/gstreamer/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/gstreamer/default.nix rename to pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix diff --git a/pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh b/pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh similarity index 100% rename from pkgs/development/libraries/gstreamer/gstreamer/setup-hook.sh rename to pkgs/development/libraries/gstreamer/legacy/gstreamer/setup-hook.sh diff --git a/pkgs/development/libraries/gstreamer/qt-gstreamer/boost1.48.patch b/pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/boost1.48.patch similarity index 100% rename from pkgs/development/libraries/gstreamer/qt-gstreamer/boost1.48.patch rename to pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/boost1.48.patch diff --git a/pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix b/pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/default.nix similarity index 100% rename from pkgs/development/libraries/gstreamer/qt-gstreamer/default.nix rename to pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/default.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 298944cdd05c..51deb230dc06 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4408,29 +4408,29 @@ let gstFfmpeg = pkgs.gst_ffmpeg; }; - gstreamer = callPackage ../development/libraries/gstreamer/gstreamer {}; + gstreamer = callPackage ../development/libraries/gstreamer/legacy/gstreamer {}; - gst_plugins_base = callPackage ../development/libraries/gstreamer/gst-plugins-base {}; + gst_plugins_base = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-base {}; - gst_plugins_good = callPackage ../development/libraries/gstreamer/gst-plugins-good {}; + gst_plugins_good = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-good {}; - gst_plugins_bad = callPackage ../development/libraries/gstreamer/gst-plugins-bad {}; + gst_plugins_bad = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-bad {}; - gst_plugins_ugly = callPackage ../development/libraries/gstreamer/gst-plugins-ugly {}; + gst_plugins_ugly = callPackage ../development/libraries/gstreamer/legacy/gst-plugins-ugly {}; - gst_ffmpeg = callPackage ../development/libraries/gstreamer/gst-ffmpeg { + gst_ffmpeg = callPackage ../development/libraries/gstreamer/legacy/gst-ffmpeg { ffmpeg = ffmpeg_0_10; }; - gst_python = callPackage ../development/libraries/gstreamer/gst-python {}; + gst_python = callPackage ../development/libraries/gstreamer/legacy/gst-python {}; - gnonlin = callPackage ../development/libraries/gstreamer/gnonlin {}; + gnonlin = callPackage ../development/libraries/gstreamer/legacy/gnonlin {}; gusb = callPackage ../development/libraries/gusb { inherit (gnome) gtkdoc; }; - qt_gstreamer = callPackage ../development/libraries/gstreamer/qt-gstreamer {}; + qt_gstreamer = callPackage ../development/libraries/gstreamer/legacy/qt-gstreamer {}; gnet = callPackage ../development/libraries/gnet { }; From 7a74215face789c9e8b287373f9155840122a236 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Mon, 23 Dec 2013 23:36:37 +0800 Subject: [PATCH 2/6] add gstreamer 1.2.1 --- .../libraries/gstreamer/bad/default.nix | 33 +++++++++++++++++++ .../libraries/gstreamer/base/default.nix | 31 +++++++++++++++++ .../libraries/gstreamer/core/default.nix | 25 ++++++++++++++ .../libraries/gstreamer/default.nix | 15 +++++++++ .../libraries/gstreamer/good/default.nix | 32 ++++++++++++++++++ .../libraries/gstreamer/libav/default.nix | 24 ++++++++++++++ .../libraries/gstreamer/ugly/default.nix | 28 ++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 8 files changed, 190 insertions(+) create mode 100644 pkgs/development/libraries/gstreamer/bad/default.nix create mode 100644 pkgs/development/libraries/gstreamer/base/default.nix create mode 100644 pkgs/development/libraries/gstreamer/core/default.nix create mode 100644 pkgs/development/libraries/gstreamer/default.nix create mode 100644 pkgs/development/libraries/gstreamer/good/default.nix create mode 100644 pkgs/development/libraries/gstreamer/libav/default.nix create mode 100644 pkgs/development/libraries/gstreamer/ugly/default.nix diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix new file mode 100644 index 000000000000..02f1cf89a5fd --- /dev/null +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc +, faac, faad2, libass, libkate, libmms +, libmodplug, mpeg2dec, mpg123 +, openjpeg, libopus, librsvg +, timidity, libvdpau, wayland +, libwebp, xvidcore +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-bad-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; + sha256 = "f33e7c81fcb742fe50b73ad87ef8a4baa7d6b59c5002a10bf63c8dee22404929"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc + faac faad2 libass libkate libmms + libmodplug mpeg2dec mpg123 + openjpeg libopus librsvg + timidity libvdpau wayland + libwebp xvidcore + ]; +} diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix new file mode 100644 index 000000000000..fa5e7696c1ac --- /dev/null +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection +, orc, alsaLib, libXv, pango, libtheora +, cdparanoia, libvisual +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-base-1.2.1"; + + meta = { + description = "Base plugins and helper libraries"; + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; + sha256 = "de2444a5c150d4e4b680364d7c0414cd8b015d95b305ff65d65a17683379532f"; + }; + + nativeBuildInputs = [ + pkgconfig python gobjectIntrospection + ]; + + buildInputs = [ + orc alsaLib libXv pango libtheora + cdparanoia libvisual + ]; + + propagatedBuildInputs = [ gstreamer ]; +} diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix new file mode 100644 index 000000000000..6c33b91d6ee6 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, pkgconfig, perl, bison, flex, python, gobjectIntrospection +, glib +}: + +stdenv.mkDerivation rec { + name = "gstreamer-1.2.1"; + + meta = { + description = "Open source multimedia framework"; + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; + sha256 = "a4523d2471bca6cd0059a32e3b042f50faa4dadc6439852af8b43ca3f17d1fc9"; + }; + + nativeBuildInputs = [ + pkgconfig perl bison flex python gobjectIntrospection + ]; + + propagatedBuildInputs = [ glib ]; +} diff --git a/pkgs/development/libraries/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/default.nix new file mode 100644 index 000000000000..1d02e6459ab2 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/default.nix @@ -0,0 +1,15 @@ +{ callPackage }: + +rec { + gstreamer = callPackage ./core { }; + + gst-plugins-base = callPackage ./base { inherit gstreamer; }; + + gst-plugins-good = callPackage ./good { inherit gst-plugins-base; }; + + gst-plugins-bad = callPackage ./bad { inherit gst-plugins-base; }; + + gst-plugins-ugly = callPackage ./ugly { inherit gst-plugins-base; }; + + gst-libav = callPackage ./libav { inherit gst-plugins-base; }; +} diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix new file mode 100644 index 000000000000..75af280b0afc --- /dev/null +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, pkgconfig, python +, gst-plugins-base, orc, bzip2 +, libv4l, libdv, libavc1394, libiec61883 +, libvpx, speex, flac, taglib +, cairo, gdk_pixbuf, aalib, libcaca +, libsoup, pulseaudio +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-good-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.gpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; + sha256 = "660fa02dbe01086fcf702d87acc0ba5dde2559d6a11ecf438874afe504c50517"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc bzip2 + libv4l libdv libavc1394 libiec61883 + libvpx speex flac taglib + cairo gdk_pixbuf aalib libcaca + libsoup pulseaudio + ]; +} diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix new file mode 100644 index 000000000000..72556d968029 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, pkgconfig, python, yasm +, gst-plugins-base, bzip2 +}: + +stdenv.mkDerivation rec { + name = "gst-libav-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; + sha256 = "fd152b7aec56ae76ad58b9759913a8bfe1792bdf64f260d0acaba75b75076676"; + }; + + nativeBuildInputs = [ pkgconfig python yasm ]; + + buildInputs = [ + gst-plugins-base bzip2 + ]; +} diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix new file mode 100644 index 000000000000..60bf519a76c7 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, pkgconfig, python +, gst-plugins-base, orc +, a52dec, libcdio, libdvdread +, lame, libmad, libmpeg2, x264 +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-ugly-1.2.1"; + + meta = { + homepage = "http://gstreamer.freedesktop.org"; + license = stdenv.lib.licenses.lgpl2Plus; + platforms = stdenv.lib.platforms.linux; + }; + + src = fetchurl { + url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; + sha256 = "35ae5d45de54827604e24f57f54ab30a5ab2245b4c4120977273eb11d19c2395"; + }; + + nativeBuildInputs = [ pkgconfig python ]; + + buildInputs = [ + gst-plugins-base orc + a52dec libcdio libdvdread + lame libmad libmpeg2 x264 + ]; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51deb230dc06..81fd038ff463 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4399,6 +4399,8 @@ let mpfr = callPackage ../development/libraries/mpfr { }; mpfr_3_1_2 = callPackage ../development/libraries/mpfr/3.1.2.nix { }; + gst_all_1 = callPackage ../development/libraries/gstreamer { }; + gst_all = { inherit (pkgs) gstreamer gnonlin gst_python qt_gstreamer; gstPluginsBase = pkgs.gst_plugins_base; From 0596f3074bb27f1473b3a2b0492ce9143fc308c8 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Tue, 24 Dec 2013 12:43:57 +0800 Subject: [PATCH 3/6] add parole 0.5.4 --- pkgs/desktops/xfce/applications/parole.nix | 43 ++++++++++++++++++++++ pkgs/desktops/xfce/default.nix | 1 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/desktops/xfce/applications/parole.nix diff --git a/pkgs/desktops/xfce/applications/parole.nix b/pkgs/desktops/xfce/applications/parole.nix new file mode 100644 index 000000000000..c1a4ecd787d8 --- /dev/null +++ b/pkgs/desktops/xfce/applications/parole.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, makeWrapper, pkgconfig, intltool, gst_all_1 +, gtk, dbus_glib, libxfce4ui, libxfce4util, xfconf +, taglib, libnotify +, withGstPlugins ? true +}: + +stdenv.mkDerivation rec { + p_name = "parole"; + ver_maj = "0.5"; + ver_min = "4"; + + src = fetchurl { + url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2"; + sha256 = "1hxzqg9dfghrhvmnnccwwa4278fh2awkcqy89sla05m08mxvvx60"; + }; + name = "${p_name}-${ver_maj}.${ver_min}"; + + nativeBuildInputs = [ pkgconfig intltool ]; + + buildInputs = [ + makeWrapper gst_all_1.gst-plugins-base + gtk dbus_glib libxfce4ui libxfce4util xfconf + taglib libnotify + ]; + + configureFlags = [ "--with-gstreamer=1.0" ]; + + postInstall = stdenv.lib.optionalString withGstPlugins '' + wrapProgram "$out/bin/parole" --prefix \ + GST_PLUGIN_PATH ":" ${stdenv.lib.concatStringsSep ":" + (map (s: s+"/lib/gstreamer-1.0") (with gst_all_1; [ + gst-plugins-base gst-plugins-good + gst-plugins-bad gst-plugins-ugly + gst-libav + ])) } + ''; + + meta = { + homepage = "http://goodies.xfce.org/projects/applications/${p_name}"; + description = "Modern simple media player"; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index ede7ffb6c49c..b9c84cf95e28 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -41,6 +41,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od gigolo = callPackage ./applications/gigolo.nix { }; mousepad = callPackage ./applications/mousepad.nix { }; + parole = callPackage ./applications/parole.nix { }; ristretto = callPackage ./applications/ristretto.nix { }; terminal = xfce4terminal; # it has changed its name xfce4mixer = callPackage ./applications/xfce4-mixer.nix { }; From 9a3e183080e0dee9ad9b4d55ddc4aaffba395436 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Thu, 2 Jan 2014 10:33:36 +0800 Subject: [PATCH 4/6] gstreamer: update to 1.2.2, add myself as maintainer --- pkgs/development/libraries/gstreamer/bad/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/base/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/core/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/good/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/libav/default.nix | 5 +++-- pkgs/development/libraries/gstreamer/ugly/default.nix | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index 02f1cf89a5fd..f05408767a74 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -7,17 +7,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-bad-1.2.1"; + name = "gst-plugins-bad-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; - sha256 = "f33e7c81fcb742fe50b73ad87ef8a4baa7d6b59c5002a10bf63c8dee22404929"; + sha256 = "63e78db11b482d0529a0bde01e2ac23fd32c7cb99a5508b53ee4ca1051871b2c"; }; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix index fa5e7696c1ac..01a75ce52112 100644 --- a/pkgs/development/libraries/gstreamer/base/default.nix +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -4,18 +4,19 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-base-1.2.1"; + name = "gst-plugins-base-1.2.2"; meta = { description = "Base plugins and helper libraries"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; - sha256 = "de2444a5c150d4e4b680364d7c0414cd8b015d95b305ff65d65a17683379532f"; + sha256 = "fa90cf21eac0a77f9393100356aef99ae42072c31dc218d3ae2e7f86cd5ced69"; }; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 6c33b91d6ee6..5e7548627fe2 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -3,18 +3,19 @@ }: stdenv.mkDerivation rec { - name = "gstreamer-1.2.1"; + name = "gstreamer-1.2.2"; meta = { description = "Open source multimedia framework"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; - sha256 = "a4523d2471bca6cd0059a32e3b042f50faa4dadc6439852af8b43ca3f17d1fc9"; + sha256 = "b9f12137ab663edc6c37429b38ca7911074b9c2a829267fe855d4e57d916a0b6"; }; nativeBuildInputs = [ diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix index 75af280b0afc..616f63d7da7f 100644 --- a/pkgs/development/libraries/gstreamer/good/default.nix +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -7,17 +7,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-good-1.2.1"; + name = "gst-plugins-good-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.gpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; - sha256 = "660fa02dbe01086fcf702d87acc0ba5dde2559d6a11ecf438874afe504c50517"; + sha256 = "6c090f00e8e4588f12807bd9fbb06a03b84a512c93e84d928123ee4a42228a81"; }; nativeBuildInputs = [ pkgconfig python ]; diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index 72556d968029..956058227877 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -3,17 +3,18 @@ }: stdenv.mkDerivation rec { - name = "gst-libav-1.2.1"; + name = "gst-libav-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; - sha256 = "fd152b7aec56ae76ad58b9759913a8bfe1792bdf64f260d0acaba75b75076676"; + sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418"; }; nativeBuildInputs = [ pkgconfig python yasm ]; diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix index 60bf519a76c7..8dafbf013f37 100644 --- a/pkgs/development/libraries/gstreamer/ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -5,17 +5,18 @@ }: stdenv.mkDerivation rec { - name = "gst-plugins-ugly-1.2.1"; + name = "gst-plugins-ugly-1.2.2"; meta = { homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; src = fetchurl { url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; - sha256 = "35ae5d45de54827604e24f57f54ab30a5ab2245b4c4120977273eb11d19c2395"; + sha256 = "4b6aac272a5be0d68f365ef6fba0f829fc5c1d1d601bb4dd9e85f5289b2b56c3"; }; nativeBuildInputs = [ pkgconfig python ]; From 7e67caa06c8219c34973744e907b140c0d1f3721 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Thu, 2 Jan 2014 21:28:40 +0800 Subject: [PATCH 5/6] gst-libav: add withSystemLibav option --- .../libraries/gstreamer/libav/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/libav/default.nix b/pkgs/development/libraries/gstreamer/libav/default.nix index 956058227877..d539811462cc 100644 --- a/pkgs/development/libraries/gstreamer/libav/default.nix +++ b/pkgs/development/libraries/gstreamer/libav/default.nix @@ -1,7 +1,10 @@ { stdenv, fetchurl, pkgconfig, python, yasm -, gst-plugins-base, bzip2 +, gst-plugins-base, orc, bzip2 +, withSystemLibav ? false, libav ? null }: +assert withSystemLibav -> libav != null; + stdenv.mkDerivation rec { name = "gst-libav-1.2.2"; @@ -17,9 +20,16 @@ stdenv.mkDerivation rec { sha256 = "585eb7971006100ad771a852e07bd2f3e23bcc6eb0b1253a40b5a0e40e4e7418"; }; - nativeBuildInputs = [ pkgconfig python yasm ]; + configureFlags = stdenv.lib.optionalString withSystemLibav + "--with-system-libav"; - buildInputs = [ - gst-plugins-base bzip2 - ]; + nativeBuildInputs = with stdenv.lib; + [ pkgconfig python ] + ++ optional (!withSystemLibav) yasm + ; + + buildInputs = with stdenv.lib; + [ gst-plugins-base orc bzip2 ] + ++ optional withSystemLibav libav + ; } From 640e13ce1333fb33be02931299f99ab98ab56b93 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Fri, 10 Jan 2014 20:56:18 +0800 Subject: [PATCH 6/6] gst-plugins-bad: build with gnutls to add fragmented plugin --- pkgs/development/libraries/gstreamer/bad/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index f05408767a74..81207155625a 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -3,7 +3,7 @@ , libmodplug, mpeg2dec, mpg123 , openjpeg, libopus, librsvg , timidity, libvdpau, wayland -, libwebp, xvidcore +, libwebp, xvidcore, gnutls }: stdenv.mkDerivation rec { @@ -29,6 +29,6 @@ stdenv.mkDerivation rec { libmodplug mpeg2dec mpg123 openjpeg libopus librsvg timidity libvdpau wayland - libwebp xvidcore + libwebp xvidcore gnutls ]; }