gst-plugins: fix on Darwin

This commit is contained in:
Matthew Bauer 2018-04-24 18:35:54 -05:00
parent 00bf115047
commit 734b13a817
3 changed files with 12 additions and 3 deletions

View File

@ -35,6 +35,7 @@ stdenv.mkDerivation rec {
''; '';
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ matthewbauer ];
}; };
preConfigure = '' preConfigure = ''

View File

@ -6,6 +6,7 @@
, libsoup, libpulseaudio, libintl , libsoup, libpulseaudio, libintl
, darwin, lame, mpg123, twolame , darwin, lame, mpg123, twolame
, gtkSupport ? false, gtk3 ? null , gtkSupport ? false, gtk3 ? null
, ncurses
}: }:
assert gtkSupport -> gtk3 != null; assert gtkSupport -> gtk3 != null;
@ -26,6 +27,7 @@ stdenv.mkDerivation rec {
''; '';
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ matthewbauer ];
}; };
src = fetchurl { src = fetchurl {
@ -39,11 +41,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig python meson ninja gettext ]; nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
NIX_LDFLAGS = "-lncurses";
buildInputs = [ buildInputs = [
gst-plugins-base orc bzip2 gst-plugins-base orc bzip2
libdv libvpx speex flac taglib libdv libvpx speex flac taglib
cairo gdk_pixbuf aalib libcaca cairo gdk_pixbuf aalib libcaca
libsoup libshout lame mpg123 twolame libintl libsoup libshout lame mpg123 twolame libintl
ncurses
] ]
++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ] ++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ]; ++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ];

View File

@ -1,13 +1,14 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, python { stdenv, fetchurl, meson, ninja, pkgconfig, python
, gst-plugins-base, orc, gettext , gst-plugins-base, orc, gettext
, a52dec, libcdio, libdvdread , a52dec, libcdio, libdvdread
, libmad, libmpeg2, x264, libintl , libmad, libmpeg2, x264, libintl, lib
, darwin
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gst-plugins-ugly-1.14.0"; name = "gst-plugins-ugly-1.14.0";
meta = with stdenv.lib; { meta = with lib; {
description = "Gstreamer Ugly Plugins"; description = "Gstreamer Ugly Plugins";
homepage = "https://gstreamer.freedesktop.org"; homepage = "https://gstreamer.freedesktop.org";
longDescription = '' longDescription = ''
@ -18,6 +19,7 @@ stdenv.mkDerivation rec {
''; '';
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ matthewbauer ];
}; };
src = fetchurl { src = fetchurl {
@ -34,5 +36,6 @@ stdenv.mkDerivation rec {
a52dec libcdio libdvdread a52dec libcdio libdvdread
libmad libmpeg2 x264 libmad libmpeg2 x264
libintl libintl
]; ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks;
[ IOKit CoreFoundation DiskArbitration ]);
} }