mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
5e937b173d
See https://gstreamer.freedesktop.org/releases/1.10/#1.10.4. Fixes: * CVE-2017-5847 * CVE-2017-5848 cc #23072
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection
|
|
, orc, alsaLib, libXv, pango, libtheora
|
|
, cdparanoia, libvisual, libintlOrEmpty
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gst-plugins-base-1.10.4";
|
|
|
|
meta = {
|
|
description = "Base plugins and helper libraries";
|
|
homepage = "http://gstreamer.freedesktop.org";
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz";
|
|
sha256 = "1dsyjf6rncsbg4rfj40cvf1wwpjj9h3j3c7bh4zp7jylnfv4blpn";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig python gobjectIntrospection
|
|
];
|
|
|
|
buildInputs = [
|
|
orc libXv pango libtheora cdparanoia
|
|
]
|
|
++ libintlOrEmpty
|
|
++ stdenv.lib.optional stdenv.isLinux alsaLib
|
|
++ stdenv.lib.optional (!stdenv.isDarwin) libvisual;
|
|
|
|
propagatedBuildInputs = [ gstreamer ];
|
|
|
|
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;
|
|
|
|
enableParallelBuilding = true;
|
|
}
|