2013-12-23 15:36:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
|
|
|
|
, orc, alsaLib, libXv, pango, libtheora
|
2015-04-09 02:47:56 +01:00
|
|
|
, cdparanoia, libvisual, libintlOrEmpty
|
2013-12-23 15:36:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-07 13:03:36 +00:00
|
|
|
name = "gst-plugins-base-1.12.3";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Base plugins and helper libraries";
|
2017-09-16 20:28:31 +01:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2013-12-23 15:36:37 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2015-04-09 02:47:56 +01: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";
|
2017-12-07 13:03:36 +00:00
|
|
|
sha256 = "19ffwdch7m777ragmwpy6prqmfb742ym1n3ki40s0zyki627plyk";
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 13:39:30 +01:00
|
|
|
|
2013-12-23 15:36:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig python gobjectIntrospection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2015-04-09 02:47:56 +01: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 21:17:38 +01:00
|
|
|
|
2016-04-24 13:39:30 +01:00
|
|
|
configureFlags = if stdenv.isDarwin then [
|
2015-04-09 02:47:56 +01:00
|
|
|
# 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 21:17:38 +01:00
|
|
|
enableParallelBuilding = true;
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|