mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
3010e63fb7
A lot of packages are not built in hydra due to gst-plugins-bad being unfree. Make faac dependency optional.
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
|
|
, faacSupport ? false, faac ? null
|
|
, faad2, libass, libkate, libmms
|
|
, libmodplug, mpeg2dec, mpg123
|
|
, openjpeg, libopus, librsvg
|
|
, timidity, libvdpau, wayland
|
|
, libwebp, xvidcore, gnutls
|
|
}:
|
|
|
|
assert faacSupport -> faac != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gst-plugins-bad-1.2.3";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Gstreamer Bad Plugins";
|
|
homepage = "http://gstreamer.freedesktop.org";
|
|
longDescription = ''
|
|
a set of plug-ins that aren't up to par compared to the
|
|
rest. They might be close to being good quality, but they're missing
|
|
something - be it a good code review, some documentation, a set of tests,
|
|
a real live maintainer, or some actual wide use.
|
|
'';
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ iyzsong ];
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
|
|
sha256 = "1317hik9fdmy300p7c2y3aw43y6v9dr8f1906zm7s876m48pjpar";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
buildInputs = [
|
|
gst-plugins-base orc
|
|
faad2 libass libkate libmms
|
|
libmodplug mpeg2dec mpg123
|
|
openjpeg libopus librsvg
|
|
timidity libvdpau wayland
|
|
libwebp xvidcore gnutls
|
|
] ++ stdenv.lib.optional faacSupport faac;
|
|
}
|