gst_all_1.gst-plugins-base: 1.16.0 -> 1.16.1

This commit is contained in:
Will Dietz 2019-10-02 12:03:44 -05:00 committed by Jan Tojnar
parent b32481a687
commit 9e4fb4c23c
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,63 +1,88 @@
{ stdenv, fetchurl, fetchpatch, lib { stdenv
, pkgconfig, meson, ninja, gettext, gobject-introspection , fetchurl
, python3, gstreamer, orc, pango, libtheora , lib
, libintl, libopus , pkgconfig
, meson
, ninja
, gettext
, gobject-introspection
, python3
, gstreamer
, orc
, pango
, libtheora
, libintl
, libopus
, isocodes , isocodes
, libjpeg , libjpeg
, libvisual , libvisual
, tremor # provides 'virbisidec' , tremor # provides 'virbisidec'
, libGL , libGL
, gtk-doc, docbook_xsl, docbook_xml_dtd_412 , gtk-doc
, enableX11 ? stdenv.isLinux, libXv , docbook_xsl
, enableWayland ? stdenv.isLinux, wayland , docbook_xml_dtd_43
, enableAlsa ? stdenv.isLinux, alsaLib , enableX11 ? stdenv.isLinux
, enableCocoa ? false, darwin , libXv
, enableCdparanoia ? (!stdenv.isDarwin), cdparanoia }: , enableWayland ? stdenv.isLinux
, wayland
, enableAlsa ? stdenv.isLinux
, alsaLib
, enableCocoa ? false
, darwin
, enableCdparanoia ? (!stdenv.isDarwin)
, cdparanoia
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gst-plugins-base"; pname = "gst-plugins-base";
version = "1.16.0"; version = "1.16.1";
meta = with lib; {
description = "Base plugins and helper libraries";
homepage = https://gstreamer.freedesktop.org;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ matthewbauer ];
};
src = fetchurl {
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "1bmmdwbyy89ayb85xc48y217f6wdmpz96f30zm6v53z2a5xsm4s0";
};
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
src = fetchurl {
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "0aybbwnzm15074smdk2bamj3ssck3hjvmilvgh49f19xjf4w8g2w";
};
patches = [
./fix_pkgconfig_includedir.patch
];
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig python3 gettext gobject-introspection meson
ninja
pkgconfig
python3
gettext
gobject-introspection
# docs
gtk-doc gtk-doc
# Without these, enabling the 'gtk_doc' gives us `FAILED: meson-install` docbook_xsl
docbook_xsl docbook_xml_dtd_412 docbook_xml_dtd_43
] ];
# Broken meson with Darwin. Should hopefully be fixed soon. Tracking
# in https://bugzilla.gnome.org/show_bug.cgi?id=781148.
++ lib.optionals (!stdenv.isDarwin) [ meson ninja ];
# On Darwin, we currently use autoconf, on all other systems Meson buildInputs = [
# TODO Switch to Meson on Darwin as well orc
libtheora
libintl
libopus
isocodes
libjpeg
tremor
libGL
] ++ lib.optional (!stdenv.isDarwin) libvisual
++ lib.optional enableAlsa alsaLib
++ lib.optionals enableX11 [ libXv pango ]
++ lib.optional enableWayland wayland
++ lib.optional enableCocoa darwin.apple_sdk.frameworks.Cocoa
++ lib.optional enableCdparanoia cdparanoia;
# TODO How to pass these to Meson? propagatedBuildInputs = [
configureFlags = lib.optionals stdenv.isDarwin [ gstreamer
"--enable-x11=${if enableX11 then "yes" else "no"}" ];
"--enable-wayland=${if enableWayland then "yes" else "no"}"
"--enable-cocoa=${if enableCocoa then "yes" else "no"}"
]
# Introspection fails on my MacBook currently
++ lib.optional stdenv.isDarwin "--disable-introspection";
mesonFlags = lib.optionals (!stdenv.isDarwin) [ mesonFlags = [
# Enables all features, so that we know when new dependencies are necessary.
"-Dauto_features=enabled"
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
"-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
# See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices # See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
@ -65,36 +90,28 @@ stdenv.mkDerivation rec {
# We must currently disable gtk_doc API docs generation, # We must currently disable gtk_doc API docs generation,
# because it is not compatible with some features being disabled. # because it is not compatible with some features being disabled.
# See for example # See for example
# https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/38 # https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/564
# for it failing because some Wayland symbols are missing. # for it failing because some Wayland symbols are missing.
# This problem appeared between 1.15.1 and 1.16.0. # This problem appeared between 1.15.1 and 1.16.0.
# In 1.18 they should switch to hotdoc, which should make this issue irrelevant.
"-Dgtk_doc=disabled" "-Dgtk_doc=disabled"
] ]
++ lib.optional (!enableX11) "-Dx11=disabled" ++ lib.optional (!enableX11) "-Dx11=disabled"
# TODO How to disable Wayland? # TODO How to disable Wayland?
++ lib.optional (!enableAlsa) "-Dalsa=disabled" ++ lib.optional (!enableAlsa) "-Dalsa=disabled"
++ lib.optional (!enableCdparanoia) "-Dcdparanoia=disabled" ++ lib.optional (!enableCdparanoia) "-Dcdparanoia=disabled";
;
buildInputs = [ orc libtheora libintl libopus isocodes libjpeg tremor libGL ]
++ lib.optional (!stdenv.isDarwin) libvisual
++ lib.optional enableAlsa alsaLib
++ lib.optionals enableX11 [ libXv pango ]
++ lib.optional enableWayland wayland
++ lib.optional enableCocoa darwin.apple_sdk.frameworks.Cocoa
++ lib.optional enableCdparanoia cdparanoia;
propagatedBuildInputs = [ gstreamer ];
postPatch = '' postPatch = ''
patchShebangs . patchShebangs common/scangobj-merge.py
''; '';
enableParallelBuilding = true;
doCheck = false; # fails, wants DRI access for OpenGL doCheck = false; # fails, wants DRI access for OpenGL
patches = [ meta = with lib; {
./fix_pkgconfig_includedir.patch description = "Base GStreamer plug-ins and helper libraries";
]; homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ matthewbauer ];
};
} }