2018-04-23 18:32:37 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, lib
|
|
|
|
, pkgconfig, meson, ninja, gettext, gobjectIntrospection
|
|
|
|
, python, gstreamer, orc, pango, libtheora, libvisual
|
|
|
|
, libintl
|
|
|
|
, enableX11 ? stdenv.isLinux, libXv
|
|
|
|
, enableWayland ? stdenv.isLinux, wayland
|
|
|
|
, enableAlsa ? stdenv.isLinux, alsaLib
|
|
|
|
, enableCocoa ? false, darwin
|
|
|
|
, enableCdparanoia ? (!stdenv.isDarwin), cdparanoia }:
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 20:09:07 +01:00
|
|
|
name = "gst-plugins-base-1.14.0";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
2018-04-23 18:32:37 +01:00
|
|
|
meta = with lib; {
|
2013-12-23 15:36:37 +00:00
|
|
|
description = "Base plugins and helper libraries";
|
2017-09-16 20:28:31 +01:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2018-04-23 18:32:37 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz";
|
2018-03-30 20:09:07 +01:00
|
|
|
sha256 = "0h39bcp7fcd9kgb189lxr8l0hm0almvzpzgpdh1jpq2nzxh4d43y";
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 13:39:30 +01:00
|
|
|
|
2018-04-23 18:32:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig python gettext gobjectIntrospection ]
|
|
|
|
|
|
|
|
# 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 ];
|
2013-12-23 15:36:37 +00:00
|
|
|
|
2018-04-23 18:32:37 +01:00
|
|
|
# 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"}"
|
2015-04-09 02:47:56 +01:00
|
|
|
]
|
2018-04-23 18:32:37 +01:00
|
|
|
|
|
|
|
# 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;
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ gstreamer ];
|
2014-08-12 21:17:38 +01:00
|
|
|
|
2018-04-23 18:32:37 +01:00
|
|
|
postPatch = ''
|
2018-03-31 14:16:56 +01:00
|
|
|
patchShebangs .
|
|
|
|
'';
|
2015-04-09 02:47:56 +01:00
|
|
|
|
2014-08-12 21:17:38 +01:00
|
|
|
enableParallelBuilding = true;
|
2015-04-09 02:47:56 +01:00
|
|
|
|
2018-03-31 14:16:56 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370414";
|
|
|
|
sha256 = "07x43xis0sr0hfchf36ap0cibx0lkfpqyszb3r3w9dzz301fk04z";
|
|
|
|
})
|
|
|
|
./fix_pkgconfig_includedir.patch
|
|
|
|
];
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|