2013-12-23 15:36:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
|
|
|
|
, orc, alsaLib, libXv, pango, libtheora
|
2015-04-09 01:47:56 +00:00
|
|
|
, cdparanoia, libvisual, libintlOrEmpty
|
2013-12-23 15:36:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-12-05 10:05:48 +00:00
|
|
|
name = "gst-plugins-base-1.6.1";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Base plugins and helper libraries";
|
|
|
|
homepage = "http://gstreamer.freedesktop.org";
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2015-04-09 01:47:56 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz";
|
2015-12-05 10:05:48 +00:00
|
|
|
sha256 = "18sbyjcp281zb3bsqji3pglsdsxi0s6ai7rx90sx8cpflkxdqcwm";
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig python gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2015-04-09 01:47:56 +00:00
|
|
|
orc libXv pango libtheora cdparanoia
|
|
|
|
]
|
|
|
|
++ libintlOrEmpty
|
|
|
|
++ stdenv.lib.optional stdenv.isLinux alsaLib
|
|
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) libvisual;
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gstreamer ];
|
2014-08-12 20:17:38 +00:00
|
|
|
|
2015-04-09 01:47:56 +00:00
|
|
|
configureFlags = if stdenv.isDarwin then [
|
|
|
|
# Does not currently build on Darwin
|
|
|
|
"--disable-libvisual"
|
|
|
|
# Undefined symbols _cdda_identify and _cdda_identify_scsi in cdparanoia
|
|
|
|
"--disable-cdparanoia"
|
|
|
|
] else null;
|
|
|
|
|
|
|
|
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
|
|
|
|
|
2014-08-12 20:17:38 +00:00
|
|
|
enableParallelBuilding = true;
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|
2014-08-12 20:17:38 +00:00
|
|
|
|