diff options
author | Song Wenwu <iyzsong@gmail.com> | 2013-12-23 23:21:43 +0800 |
---|---|---|
committer | Song Wenwu <iyzsong@gmail.com> | 2014-01-10 20:51:24 +0800 |
commit | 97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3 (patch) | |
tree | 1d028c94e920e12ab196611db032abc4897111f4 /pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix | |
parent | e49656fcf7293017fb7fb4ff223154dc906d084e (diff) | |
download | nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar.gz nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar.bz2 nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar.lz nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar.xz nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.tar.zst nixlib-97d7c0abe592140e0a9663dfaf2f94ea1a63e4e3.zip |
gstreamer-0.10: move to gstreamer/legacy
Diffstat (limited to 'pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix')
-rw-r--r-- | pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix new file mode 100644 index 000000000000..59ee86da86d4 --- /dev/null +++ b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix @@ -0,0 +1,51 @@ +{ fetchurl, stdenv, pkgconfig, python, gstreamer, xlibs, alsaLib, cdparanoia +, libogg, libtheora, libvorbis, freetype, pango, liboil, glib, cairo, orc +, libintlOrEmpty +, # Whether to build no plugins that have external dependencies + # (except the ALSA plugin). + minimalDeps ? false +}: + +stdenv.mkDerivation rec { + name = "gst-plugins-base-0.10.36"; + + src = fetchurl { + urls = [ + "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz" + "mirror://gentoo/distfiles/${name}.tar.xz" + ]; + sha256 = "0jp6hjlra98cnkal4n6bdmr577q8mcyp3c08s3a02c4hjhw5rr0z"; + }; + + patchPhase = '' + + sed -i 's@/bin/echo@echo@g' configure + sed -i -e 's/^ /\t/' docs/{libs,plugins}/Makefile.in + ''; + + # TODO : v4l, libvisual + buildInputs = + [ pkgconfig glib cairo orc ] + # can't build alsaLib on darwin + ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib + ++ stdenv.lib.optionals (!minimalDeps) + [ xlibs.xlibs xlibs.libXv libogg libtheora libvorbis freetype pango + liboil ] + # can't build cdparanoia on darwin + ++ stdenv.lib.optional (!minimalDeps && !stdenv.isDarwin) cdparanoia + ++ libintlOrEmpty; + + NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; + + propagatedBuildInputs = [ gstreamer ]; + + postInstall = "rm -rf $out/share/gtk-doc"; + + meta = with stdenv.lib; { + homepage = http://gstreamer.freedesktop.org; + description = "Base plug-ins for GStreamer"; + license = licenses.lgpl2Plus; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.unix; + }; +} |