From b2589bb0ba1308d1b664eac2046943142bcfd449 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 23:12:30 -0400 Subject: [PATCH] gst-plugins-ugly 0.x: fix Darwin build --- .../gstreamer/legacy/gst-plugins-ugly/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix index e4411fcefbbd..99ac5a5ec541 100644 --- a/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, pkgconfig, glib, gstreamer, gst_plugins_base -, libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc }: +, libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc, libintlOrEmpty }: stdenv.mkDerivation rec { name = "gst-plugins-ugly-0.10.19"; @@ -13,7 +13,9 @@ stdenv.mkDerivation rec { }; buildInputs = - [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ]; + [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ] ++ libintlOrEmpty; + + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; enableParallelBuilding = true; @@ -23,7 +25,7 @@ stdenv.mkDerivation rec { description = "‘Ugly’ (potentially patent-encumbered) plug-ins for GStreamer"; maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; license = stdenv.lib.licenses.lgpl2Plus; };