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 16:36:37 +01:00
, libv4l, libdv, libavc1394, libiec61883
2016-04-24 19:40:20 +02:00
, libvpx, speex, flac, taglib, libshout
2013-12-23 16:36:37 +01:00
, cairo, gdk_pixbuf, aalib, libcaca
2018-03-14 20:15:06 +01:00
, libsoup, libpulseaudio, libintl
, darwin, lame, mpg123, twolame
, gtkSupport ? false, gtk3 ? null
2018-04-25 01:35:54 +02:00
, ncurses
2013-12-23 16:36:37 +01:00
}:
assert gtkSupport -> gtk3 != null;
2015-04-09 03:53:06 +02:00
let
inherit (stdenv.lib) optional optionals;
2015-04-09 03:53:06 +02:00
in
2013-12-23 16:36:37 +01:00
stdenv.mkDerivation rec {
name = "gst-plugins-good-${version}";
version = "1.14.4";
2013-12-23 16:36:37 +01:00
meta = with stdenv.lib; {
description = "Gstreamer Good Plugins";
2017-09-16 21:28:31 +02: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 07:18:47 +02:00
platforms = platforms.linux ++ platforms.darwin;
2018-04-25 01:35:54 +02:00
maintainers = with maintainers; [ matthewbauer ];
2013-12-23 16:36:37 +01:00
};
src = fetchurl {
url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz";
sha256 = "0y89qynb4b6fry3h43z1r99qslmi3m8xhlq0i5baq2nbc0r5b2sz";
2013-12-23 16:36:37 +01:00
};
outputs = [ "out" "dev" ];
2016-04-24 14:39:30 +02:00
patches = [ ./fix_pkgconfig_includedir.patch ];
nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
2013-12-23 16:36:37 +01:00
2018-04-25 01:35:54 +02:00
NIX_LDFLAGS = "-lncurses";
2013-12-23 16:36:37 +01:00
buildInputs = [
gst-plugins-base orc bzip2
2015-04-09 03:53:06 +02:00
libdv libvpx speex flac taglib
2013-12-23 16:36:37 +01:00
cairo gdk_pixbuf aalib libcaca
2018-04-04 19:36:39 +02:00
libsoup libshout lame mpg123 twolame libintl
2018-04-25 01:35:54 +02:00
ncurses
2015-04-09 03:53:06 +02:00
]
++ optional gtkSupport gtk3 # for gtksink
2017-07-13 19:40:21 +02:00
++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ];
2015-04-09 03:53:06 +02: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 16:36:37 +01:00
}