From 3001119d5326c6c4cea983546000b055c110bb75 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 23:10:45 -0400 Subject: [PATCH] gst-plugins-good 0.x: fix Darwin build --- .../gstreamer/legacy/gst-plugins-good/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix index d4db4fa8de5c..1db7e4dbd550 100644 --- a/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix +++ b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix @@ -1,7 +1,7 @@ { fetchurl, stdenv, pkgconfig, gst_plugins_base, aalib, cairo , flac, libjpeg, zlib, speex, libpng, libdv, libcaca, libvpx , libiec61883, libavc1394, taglib, pulseaudio, gdk_pixbuf, orc -, glib, gstreamer, bzip2, libsoup +, glib, gstreamer, bzip2, libsoup, libintlOrEmpty , # Whether to build no plugins that have external dependencies # (except the PulseAudio plugin). minimalDeps ? false @@ -23,11 +23,15 @@ stdenv.mkDerivation rec { configureFlags = "--enable-experimental --disable-oss"; buildInputs = - [ pkgconfig glib gstreamer gst_plugins_base pulseaudio ] + [ pkgconfig glib gstreamer gst_plugins_base ] + ++ stdenv.lib.optional stdenv.isLinux [ pulseaudio ] + ++ libintlOrEmpty ++ stdenv.lib.optionals (!minimalDeps) [ aalib libcaca cairo libdv flac libjpeg libpng speex taglib bzip2 libvpx gdk_pixbuf orc libsoup ]; + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; + enableParallelBuilding = true; meta = { @@ -36,7 +40,7 @@ stdenv.mkDerivation rec { description = "`Good' plug-ins for GStreamer"; maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; license = stdenv.lib.licenses.lgpl2Plus; };