lol

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

+5 -3
+5 -3
pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix
··· 1 1 { fetchurl, stdenv, pkgconfig, glib, gstreamer, gst_plugins_base 2 - , libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc }: 2 + , libmad, libdvdread, libmpeg2, libcdio, a52dec, x264, orc, libintlOrEmpty }: 3 3 4 4 stdenv.mkDerivation rec { 5 5 name = "gst-plugins-ugly-0.10.19"; ··· 13 13 }; 14 14 15 15 buildInputs = 16 - [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ]; 16 + [ pkgconfig glib gstreamer gst_plugins_base libmad libdvdread a52dec x264 orc ] ++ libintlOrEmpty; 17 + 18 + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; 17 19 18 20 enableParallelBuilding = true; 19 21 ··· 23 25 description = "‘Ugly’ (potentially patent-encumbered) plug-ins for GStreamer"; 24 26 25 27 maintainers = [stdenv.lib.maintainers.raskin]; 26 - platforms = stdenv.lib.platforms.linux; 28 + platforms = stdenv.lib.platforms.unix; 27 29 28 30 license = stdenv.lib.licenses.lgpl2Plus; 29 31 };