2017-02-26 20:25:29 +00:00
|
|
|
{ fetchurl, stdenv, lib, pkgconfig, gst-plugins-base, aalib, cairo
|
2018-07-21 01:44:44 +01:00
|
|
|
, flac, libjpeg, speex, libpng, libdv, libcaca, libvpx
|
|
|
|
, taglib, libpulseaudio, gdk_pixbuf, orc
|
2018-03-14 19:15:06 +00:00
|
|
|
, glib, gstreamer, bzip2, libsoup, libshout, ncurses, libintl
|
2014-10-23 00:10:17 +01:00
|
|
|
, # Whether to build no plugins that have external dependencies
|
|
|
|
# (except the PulseAudio plugin).
|
|
|
|
minimalDeps ? false
|
2009-08-03 05:55:30 +01:00
|
|
|
}:
|
2008-02-22 03:06:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-28 16:43:05 +00:00
|
|
|
name = "gst-plugins-good-0.10.31";
|
2008-02-22 03:06:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-09-30 13:45:15 +01:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/src/gst-plugins-good/${name}.tar.bz2"
|
|
|
|
"mirror://gentoo/distfiles/${name}.tar.bz2"
|
|
|
|
];
|
2013-01-28 16:43:05 +00:00
|
|
|
sha256 = "1ijswgcrdp243mfsyza31fpzq6plz40p4b83vkr2x4x7807889vy";
|
2008-02-22 03:06:12 +00:00
|
|
|
};
|
|
|
|
|
2014-10-09 11:25:27 +01:00
|
|
|
patches = [ ./v4l.patch ./linux-headers-3.9.patch ];
|
2013-01-28 16:43:05 +00:00
|
|
|
|
2016-08-31 13:34:53 +01:00
|
|
|
configureFlags = [ "--enable-experimental" "--disable-oss" ];
|
2008-02-22 03:06:12 +00:00
|
|
|
|
2011-07-25 21:10:13 +01:00
|
|
|
buildInputs =
|
2018-03-14 19:15:06 +00:00
|
|
|
[ pkgconfig glib gstreamer gst-plugins-base libintl ]
|
2016-10-02 01:06:03 +01:00
|
|
|
++ lib.optional stdenv.isLinux libpulseaudio
|
2016-08-31 13:34:53 +01:00
|
|
|
++ lib.optionals (!minimalDeps)
|
2014-10-23 00:10:17 +01:00
|
|
|
[ aalib libcaca cairo libdv flac libjpeg libpng speex
|
2015-12-15 02:10:07 +00:00
|
|
|
taglib bzip2 libvpx gdk_pixbuf orc libsoup libshout ];
|
2011-07-25 21:10:13 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2008-02-22 03:06:12 +00:00
|
|
|
|
2016-08-31 13:34:53 +01:00
|
|
|
postInstall = lib.optionalString (!minimalDeps) ''
|
2015-10-20 23:51:05 +01:00
|
|
|
substituteInPlace $out/lib/gstreamer-0.10/libgstaasink.la \
|
2016-02-01 17:16:50 +00:00
|
|
|
--replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
|
2015-10-20 23:51:05 +01:00
|
|
|
'';
|
|
|
|
|
2018-08-10 00:35:34 +01:00
|
|
|
# fails 1 out of 65 tests with "Could not read TLS certificate from '../../tests/files/test-cert.pem': TLS support is not available"
|
|
|
|
doCheck = false;
|
|
|
|
|
2008-02-22 03:06:12 +00:00
|
|
|
meta = {
|
2017-09-16 20:28:31 +01:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2009-04-09 15:55:13 +01:00
|
|
|
|
|
|
|
description = "`Good' plug-ins for GStreamer";
|
|
|
|
|
2009-12-15 09:37:42 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2015-04-09 04:10:45 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-12-15 09:37:42 +00:00
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2008-02-22 03:06:12 +00:00
|
|
|
};
|
|
|
|
}
|