gst_all_1.gstreamer: 1.16.0 -> 1.16.1

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

View File

@ -1,10 +1,23 @@
{ stdenv, fetchurl, fetchpatch, meson, ninja { stdenv
, pkgconfig, gettext, gobject-introspection , fetchurl
, bison, flex, python3, glib, makeWrapper , fetchpatch
, libcap,libunwind, darwin , meson
, ninja
, pkgconfig
, gettext
, gobject-introspection
, bison
, flex
, python3
, glib
, makeWrapper
, libcap
, libunwind
, darwin
, elfutils # for libdw , elfutils # for libdw
, bash-completion , bash-completion
, docbook_xsl, docbook_xml_dtd_412 , docbook_xsl
, docbook_xml_dtd_43
, gtk-doc , gtk-doc
, lib , lib
, CoreServices , CoreServices
@ -12,50 +25,66 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gstreamer"; pname = "gstreamer";
version = "1.16.0"; version = "1.16.1";
meta = with lib ;{ outputs = [ "out" "dev" "devdoc" ];
description = "Open source multimedia framework"; outputBin = "dev";
homepage = https://gstreamer.freedesktop.org;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ ttuegel matthewbauer ];
};
src = fetchurl { src = fetchurl {
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz"; url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "003wy1p1in85p9sr5jsyhbnwqaiwz069flwkhyx7qhxy31qjz3hf"; sha256 = "0z9pyhf6zm1r0spw6zym80bvbyx6h8xg9h6535csbnn48ws1q882";
}; };
patches = [ patches = [
./fix_pkgconfig_includedir.patch ./fix_pkgconfig_includedir.patch
]; ];
outputs = [ "out" "dev" ];
outputBin = "dev";
nativeBuildInputs = [ nativeBuildInputs = [
meson ninja pkgconfig gettext bison flex python3 makeWrapper gobject-introspection meson
ninja
pkgconfig
gettext
bison
flex
python3
makeWrapper
gobject-introspection
bash-completion bash-completion
# documentation
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
]; ];
buildInputs = buildInputs = lib.optionals stdenv.isLinux [
lib.optionals stdenv.isLinux [ libcap libunwind elfutils ] libcap
++ lib.optional stdenv.isDarwin CoreServices; libunwind
elfutils
] ++ lib.optionals stdenv.isDarwin [
CoreServices
];
propagatedBuildInputs = [ glib ]; propagatedBuildInputs = [
glib
];
mesonFlags = [ mesonFlags = [
# Enables all features, so that we know when new dependencies are necessary.
"-Dauto_features=enabled"
"-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those "-Ddbghelp=disabled" # not needed as we already provide libunwind and libdw, and dbghelp is a fallback to those
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
] ] ++ lib.optionals stdenv.isDarwin [
# darwin.libunwind doesn't have pkgconfig definitions so meson doesn't detect it. # darwin.libunwind doesn't have pkgconfig definitions so meson doesn't detect it.
++ stdenv.lib.optionals stdenv.isDarwin [ "-Dlibunwind=disabled" "-Dlibdw=disabled" ]; "-Dlibunwind=disabled"
"-Dlibdw=disabled"
];
postPatch = ''
patchShebangs \
gst/parse/get_flex_version.py \
gst/parse/gen_grammar.py.in \
gst/parse/gen_lex.py.in \
libs/gst/helpers/ptp_helper_post_install.sh
'';
postInstall = '' postInstall = ''
for prog in "$dev/bin/"*; do for prog in "$dev/bin/"*; do
@ -64,21 +93,17 @@ stdenv.mkDerivation rec {
done done
''; '';
preConfigure=
# These files are not executable upstream, so we need to
# make them executable for `patchShebangs` to pick them up.
# Can be removed when this is merged and available:
# https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/141
''
chmod +x gst/parse/get_flex_version.py
'' +
''
patchShebangs .
'';
preFixup = '' preFixup = ''
moveToOutput "share/bash-completion" "$dev" moveToOutput "share/bash-completion" "$dev"
''; '';
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
meta = with lib ;{
description = "Open source multimedia framework";
homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ ttuegel matthewbauer ];
};
} }