gst-plugins-ugly 0.x: fix Darwin build

This commit is contained in:
Spencer Whitt 2015-04-08 23:12:30 -04:00
parent 3001119d53
commit b2589bb0ba

View file

@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, glib, gstreamer, gst_plugins_base { 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 { stdenv.mkDerivation rec {
name = "gst-plugins-ugly-0.10.19"; name = "gst-plugins-ugly-0.10.19";
@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
}; };
buildInputs = 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; enableParallelBuilding = true;
@ -23,7 +25,7 @@ stdenv.mkDerivation rec {
description = "Ugly (potentially patent-encumbered) plug-ins for GStreamer"; description = "Ugly (potentially patent-encumbered) plug-ins for GStreamer";
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.lgpl2Plus; license = stdenv.lib.licenses.lgpl2Plus;
}; };