Merge branch 'qtmultimedia'
This commit is contained in:
commit
49d97c3495
@ -1,17 +1,22 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, pkgconfig, meson
|
{ stdenv, fetchurl, fetchpatch, lib
|
||||||
, ninja, gettext, gobjectIntrospection, python
|
, pkgconfig, meson, ninja, gettext, gobjectIntrospection
|
||||||
, gstreamer, orc, alsaLib, libXv, pango, libtheora
|
, python, gstreamer, orc, pango, libtheora, libvisual
|
||||||
, wayland, cdparanoia, libvisual, libintl
|
, libintl
|
||||||
}:
|
, enableX11 ? stdenv.isLinux, libXv
|
||||||
|
, enableWayland ? stdenv.isLinux, wayland
|
||||||
|
, enableAlsa ? stdenv.isLinux, alsaLib
|
||||||
|
, enableCocoa ? false, darwin
|
||||||
|
, enableCdparanoia ? (!stdenv.isDarwin), cdparanoia }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gst-plugins-base-1.14.0";
|
name = "gst-plugins-base-1.14.0";
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Base plugins and helper libraries";
|
description = "Base plugins and helper libraries";
|
||||||
homepage = https://gstreamer.freedesktop.org;
|
homepage = https://gstreamer.freedesktop.org;
|
||||||
license = stdenv.lib.licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ matthewbauer ];
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -21,19 +26,32 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ pkgconfig python gettext gobjectIntrospection ]
|
||||||
pkgconfig python meson ninja gettext gobjectIntrospection
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
# Broken meson with Darwin. Should hopefully be fixed soon. Tracking
|
||||||
orc libXv pango libtheora cdparanoia libintl wayland
|
# in https://bugzilla.gnome.org/show_bug.cgi?id=781148.
|
||||||
|
++ lib.optionals (!stdenv.isDarwin) [ meson ninja ];
|
||||||
|
|
||||||
|
# TODO How to pass these to Meson?
|
||||||
|
configureFlags = [
|
||||||
|
"--enable-x11=${if enableX11 then "yes" else "no"}"
|
||||||
|
"--enable-wayland=${if enableWayland then "yes" else "no"}"
|
||||||
|
"--enable-cocoa=${if enableCocoa then "yes" else "no"}"
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optional stdenv.isLinux alsaLib
|
|
||||||
++ stdenv.lib.optional (!stdenv.isDarwin) libvisual;
|
# Introspection fails on my MacBook currently
|
||||||
|
++ lib.optional stdenv.isDarwin "--disable-introspection";
|
||||||
|
|
||||||
|
buildInputs = [ orc libtheora libintl ]
|
||||||
|
++ 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 ];
|
propagatedBuildInputs = [ gstreamer ];
|
||||||
|
|
||||||
preConfigure = ''
|
postPatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -2,17 +2,18 @@
|
|||||||
, pkgconfig, gettext, gobjectIntrospection
|
, pkgconfig, gettext, gobjectIntrospection
|
||||||
, bison, flex, python3, glib, makeWrapper
|
, bison, flex, python3, glib, makeWrapper
|
||||||
, libcap,libunwind, darwin
|
, libcap,libunwind, darwin
|
||||||
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "gstreamer-1.14.0";
|
name = "gstreamer-1.14.0";
|
||||||
|
|
||||||
meta = {
|
meta = with lib ;{
|
||||||
description = "Open source multimedia framework";
|
description = "Open source multimedia framework";
|
||||||
homepage = https://gstreamer.freedesktop.org;
|
homepage = https://gstreamer.freedesktop.org;
|
||||||
license = stdenv.lib.licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
maintainers = with maintainers; [ ttuegel matthewbauer ];
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -34,7 +35,9 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson ninja pkgconfig gettext bison flex python3 makeWrapper gobjectIntrospection
|
meson ninja pkgconfig gettext bison flex python3 makeWrapper gobjectIntrospection
|
||||||
];
|
];
|
||||||
buildInputs = [ libcap libunwind ] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
|
buildInputs =
|
||||||
|
lib.optionals stdenv.isLinux [ libcap libunwind ]
|
||||||
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
|
||||||
|
|
||||||
propagatedBuildInputs = [ glib ];
|
propagatedBuildInputs = [ glib ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user