From 0cfdfadc73ac1ba08658ca6216b64c227815dcc9 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 17 Nov 2010 13:11:41 +0000 Subject: [PATCH] Add gst-python svn path=/nixpkgs/branches/stdenv-updates/; revision=24733 --- .../libraries/gstreamer/default.nix | 2 ++ .../gstreamer/gst-python/default.nix | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/gstreamer/gst-python/default.nix diff --git a/pkgs/development/libraries/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/default.nix index 37c88580a8ac..723d4176e35e 100644 --- a/pkgs/development/libraries/gstreamer/default.nix +++ b/pkgs/development/libraries/gstreamer/default.nix @@ -13,6 +13,8 @@ rec { gnonlin = callPackage ./gnonlin { }; + gst_python = callPackage ./gst-python {}; + # Header files are in include/${prefix}/ prefix = "gstreamer-0.10"; } diff --git a/pkgs/development/libraries/gstreamer/gst-python/default.nix b/pkgs/development/libraries/gstreamer/gst-python/default.nix new file mode 100644 index 000000000000..98a2a07aa61c --- /dev/null +++ b/pkgs/development/libraries/gstreamer/gst-python/default.nix @@ -0,0 +1,30 @@ +{ fetchurl, stdenv, pkgconfig, python, gstreamer + , gstPluginsBase, pygtk +}: + +stdenv.mkDerivation rec { + name = "gst-python-0.10.19"; + + src = fetchurl { + urls = [ + "${meta.homepage}/src/gst-python/${name}.tar.bz2" + "mirror://gentoo/distfiles/${name}.tar.bz2" + ]; + sha256 = "956f81a8c15daa3f17e688a0dc5a5d18a3118141066952d3b201a6ac0c52b415"; + }; + + buildInputs = + [ pkgconfig gstPluginsBase pygtk ] + ; + + propagatedBuildInputs = [ gstreamer python ]; + + meta = { + homepage = http://gstreamer.freedesktop.org; + + description = "Python bindings for GStreamer"; + + license = "LGPLv2+"; + }; +} +