nixpkgs/pkgs/development/libraries/gstreamer/good/default.nix

62 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, python
, gst-plugins-base, orc, bzip2, gettext
2013-12-23 15:36:37 +00:00
, libv4l, libdv, libavc1394, libiec61883
2016-04-24 17:40:20 +00:00
, libvpx, speex, flac, taglib, libshout
2013-12-23 15:36:37 +00:00
, cairo, gdk_pixbuf, aalib, libcaca
2018-03-14 19:15:06 +00:00
, libsoup, libpulseaudio, libintl
, darwin, lame, mpg123, twolame
, gtkSupport ? false, gtk3 ? null
2018-04-24 23:35:54 +00:00
, ncurses
2013-12-23 15:36:37 +00:00
}:
assert gtkSupport -> gtk3 != null;
2015-04-09 01:53:06 +00:00
let
inherit (stdenv.lib) optional optionals;
2015-04-09 01:53:06 +00:00
in
2013-12-23 15:36:37 +00:00
stdenv.mkDerivation rec {
name = "gst-plugins-good-${version}";
version = "1.14.4";
2013-12-23 15:36:37 +00:00
meta = with stdenv.lib; {
description = "Gstreamer Good Plugins";
2017-09-16 19:28:31 +00:00
homepage = "https://gstreamer.freedesktop.org";
longDescription = ''
a set of plug-ins that we consider to have good quality code,
correct functionality, our preferred license (LGPL for the plug-in
code, LGPL or LGPL-compatible for the supporting library).
'';
license = licenses.lgpl2Plus;
2017-04-21 05:18:47 +00:00
platforms = platforms.linux ++ platforms.darwin;
2018-04-24 23:35:54 +00:00
maintainers = with maintainers; [ matthewbauer ];
2013-12-23 15:36:37 +00:00
};
src = fetchurl {
url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz";
sha256 = "0y89qynb4b6fry3h43z1r99qslmi3m8xhlq0i5baq2nbc0r5b2sz";
2013-12-23 15:36:37 +00:00
};
outputs = [ "out" "dev" ];
2016-04-24 12:39:30 +00:00
patches = [ ./fix_pkgconfig_includedir.patch ];
nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
2013-12-23 15:36:37 +00:00
2018-04-24 23:35:54 +00:00
NIX_LDFLAGS = "-lncurses";
2013-12-23 15:36:37 +00:00
buildInputs = [
gst-plugins-base orc bzip2
2015-04-09 01:53:06 +00:00
libdv libvpx speex flac taglib
2013-12-23 15:36:37 +00:00
cairo gdk_pixbuf aalib libcaca
2018-04-04 17:36:39 +00:00
libsoup libshout lame mpg123 twolame libintl
2018-04-24 23:35:54 +00:00
ncurses
2015-04-09 01:53:06 +00:00
]
++ optional gtkSupport gtk3 # for gtksink
2017-07-13 17:40:21 +00:00
++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ];
2015-04-09 01:53:06 +00:00
# fails 1 tests with "Unexpected critical/warning: g_object_set_is_valid_property: object class 'GstRtpStorage' has no property named ''"
doCheck = false;
2013-12-23 15:36:37 +00:00
}