From c1bd505507ce2c5a56b9475b45994597654aa347 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 16:12:24 -0400 Subject: libmodplug: Enable building on Darwin --- pkgs/development/libraries/libmodplug/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libmodplug/default.nix b/pkgs/development/libraries/libmodplug/default.nix index c1fb0033aa9..600d7faace2 100644 --- a/pkgs/development/libraries/libmodplug/default.nix +++ b/pkgs/development/libraries/libmodplug/default.nix @@ -9,7 +9,7 @@ in stdenv.mkDerivation rec { description = "MOD playing library"; homepage = "http://modplug-xmms.sourceforge.net/"; license = licenses.publicDomain; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ raskin ]; }; -- cgit 1.4.1 From 86f3a5756d324318858e57fa94d38f3d626cc2c9 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 16:52:17 -0400 Subject: libraw1394: Set platforms and update license --- pkgs/development/libraries/libraw1394/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libraw1394/default.nix b/pkgs/development/libraries/libraw1394/default.nix index 81cac5be709..e2a04b5b60a 100644 --- a/pkgs/development/libraries/libraw1394/default.nix +++ b/pkgs/development/libraries/libraw1394/default.nix @@ -8,9 +8,10 @@ stdenv.mkDerivation rec { sha256 = "0w5sw06p51wfq2ahgql93ljkkp3hqprifzcxq8dq71c8zcbgyg58"; }; - meta = { + meta = { description = "Library providing direct access to the IEEE 1394 bus through the Linux 1394 subsystem's raw1394 user space interface"; homepage = "https://ieee1394.wiki.kernel.org/index.php/Libraries#libraw1394"; - license = ["GPL" "LGPL"]; + license = stdenv.lib.licenses.lgpl21Plus; + platforms = stdenv.lib.platforms.linux; }; } -- cgit 1.4.1 From deddaa6c0df9a78a42b2d7993b114e07a66cd396 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 17:02:24 -0400 Subject: libavc1394: Add platforms and update license --- pkgs/development/libraries/libavc1394/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libavc1394/default.nix b/pkgs/development/libraries/libavc1394/default.nix index 73ca029a631..51f62b9bd5f 100644 --- a/pkgs/development/libraries/libavc1394/default.nix +++ b/pkgs/development/libraries/libavc1394/default.nix @@ -14,6 +14,7 @@ stdenv.mkDerivation rec { meta = { description = "Programming interface for the 1394 Trade Association AV/C (Audio/Video Control) Digital Interface Command Set"; homepage = http://sourceforge.net/projects/libavc1394/; - license = [ "GPL" "LGPL" ]; + license = stdenv.lib.licenses.lgpl21Plus; + platforms = stdenv.lib.platforms.linux; }; } -- cgit 1.4.1 From 0ffa2ffe2be529c9f28b93473cc9375989a0b710 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 17:08:23 -0400 Subject: libiec61883: Set platforms and update license --- pkgs/development/libraries/libiec61883/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libiec61883/default.nix b/pkgs/development/libraries/libiec61883/default.nix index d1337604260..70ccf3a761f 100644 --- a/pkgs/development/libraries/libiec61883/default.nix +++ b/pkgs/development/libraries/libiec61883/default.nix @@ -11,11 +11,12 @@ stdenv.mkDerivation rec { }; buildInputs = [ pkgconfig ]; - + propagatedBuildInputs = [ libraw1394 ]; - meta = { + meta = with stdenv.lib; { homepage = http://www.linux1394.org; - license = "LGPL"; + license = licenses.lgpl21Plus; + platforms = platforms.linux; }; } -- cgit 1.4.1 From de97f99e6d90c0d44b0706ab118ee834fd9f67d0 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 20:13:47 -0400 Subject: libvdpau: Build shared libraries on Darwin Not sure why this flag was breaking shared libraries, but it no longer seems to be necessary regardless. --- pkgs/development/libraries/libvdpau/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index 4da60397444..a6da96dc863 100644 --- a/pkgs/development/libraries/libvdpau/default.nix +++ b/pkgs/development/libraries/libvdpau/default.nix @@ -12,8 +12,6 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ xorg.libX11 ]; - configureFlags = stdenv.lib.optional stdenv.isDarwin "--build=x86_64"; - meta = with stdenv.lib; { homepage = http://people.freedesktop.org/~aplattner/vdpau/; description = "Library to use the Video Decode and Presentation API for Unix (VDPAU)"; -- cgit 1.4.1 From f8a1b8b7c84ca7332a40db4856a884c254adca4e Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 20:42:58 -0400 Subject: cdparanoia: patches for Darwin --- pkgs/applications/audio/cdparanoia/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/cdparanoia/default.nix b/pkgs/applications/audio/cdparanoia/default.nix index 5c5416b79e1..25cc33d6cb8 100644 --- a/pkgs/applications/audio/cdparanoia/default.nix +++ b/pkgs/applications/audio/cdparanoia/default.nix @@ -2,14 +2,25 @@ stdenv.mkDerivation rec { name = "cdparanoia-III-10.2"; - + src = fetchurl { url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz"; sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80"; }; preConfigure = "unset CC"; - + + patches = stdenv.lib.optionals stdenv.isDarwin [ + (fetchurl { + url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch"; + sha1 = "c86e573f51e6d58d5f349b22802a7a7eeece9fcd"; + }) + (fetchurl { + url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"; + sha1 = "d7dc121374df3b82e82adf544df7bf1eec377bdb"; + }) + ]; + meta = { homepage = http://xiph.org/paranoia; description = "A tool and library for reading digital audio from CDs"; -- cgit 1.4.1 From 710a31eb0869a32e31fcc153e6540cfbb101741c Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:41:01 -0400 Subject: libdv: refactor and Darwin fix --- pkgs/development/libraries/libdv/default.nix | 37 +++++++++++++++------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/pkgs/development/libraries/libdv/default.nix b/pkgs/development/libraries/libdv/default.nix index 3213c0634ba..e8c374297d3 100644 --- a/pkgs/development/libraries/libdv/default.nix +++ b/pkgs/development/libraries/libdv/default.nix @@ -1,28 +1,31 @@ -{ composableDerivation, fetchurl }: - -let inherit (composableDerivation) edf; in - -composableDerivation.composableDerivation {} { - - flags = { } - # TODO! implement flags - # I want to get kino and cinelerra working. That's why I don't spend more time on this now - // edf { name = "libtool_lock"; } #avoid locking (might break parallel builds) - // edf { name ="asm"; } #disable use of architecture specific assembly code - // edf { name ="sdl"; } #enable use of SDL for display - // edf { name ="gtk"; } #disable use of gtk for display - // edf { name ="xv"; } #disable use of XVideo extension for display - // edf { name ="gprof"; }; #enable compiler options for gprof profiling +{ stdenv, fetchurl, popt }: +stdenv.mkDerivation rec { name = "libdv-1.0.0"; src = fetchurl { - url = mirror://sourceforge/libdv/libdv-1.0.0.tar.gz; + url = "mirror://sourceforge/libdv/${name}.tar.gz"; sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3"; }; - meta = { + # This fixes an undefined symbol: _sched_setscheduler error on compile. + # See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section + LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup"; + + configureFlags = [ + "--disable-asm" + "--disable-sdl" + "--disable-gtk" + "--disable-xv" + "--disable-gprof" + ]; + + buildInputs = [ popt ]; + + meta = with stdenv.lib; { description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards"; homepage = http://sourceforge.net/projects/libdv/; + license = licenses.lgpl21Plus; + platforms = platforms.unix; }; } -- cgit 1.4.1 From f752a8c4192787608b543e94ae5cc9afd6cb36b8 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:46:49 -0400 Subject: gstreamer 1.x: build on Darwin --- pkgs/development/libraries/gstreamer/core/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 5e306f5500f..5dbcb1cee4b 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { description = "Open source multimedia framework"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; -- cgit 1.4.1 From a9644c2ddd81964410a0c49afd9abde58c404ef8 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:47:56 -0400 Subject: gst-plugins-base 1.x: fix Darwin build --- .../libraries/gstreamer/base/default.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/base/default.nix b/pkgs/development/libraries/gstreamer/base/default.nix index 61e0762826a..f959da4045e 100644 --- a/pkgs/development/libraries/gstreamer/base/default.nix +++ b/pkgs/development/libraries/gstreamer/base/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, pkgconfig, python, gstreamer, gobjectIntrospection , orc, alsaLib, libXv, pango, libtheora -, cdparanoia, libvisual +, cdparanoia, libvisual, libintlOrEmpty }: stdenv.mkDerivation rec { @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { description = "Base plugins and helper libraries"; homepage = "http://gstreamer.freedesktop.org"; license = stdenv.lib.licenses.lgpl2Plus; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; maintainers = with stdenv.lib.maintainers; [ iyzsong ]; }; @@ -24,12 +24,23 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - orc alsaLib libXv pango libtheora - cdparanoia libvisual - ]; + orc libXv pango libtheora cdparanoia + ] + ++ libintlOrEmpty + ++ stdenv.lib.optional stdenv.isLinux alsaLib + ++ stdenv.lib.optional (!stdenv.isDarwin) libvisual; propagatedBuildInputs = [ gstreamer ]; + configureFlags = if stdenv.isDarwin then [ + # Does not currently build on Darwin + "--disable-libvisual" + # Undefined symbols _cdda_identify and _cdda_identify_scsi in cdparanoia + "--disable-cdparanoia" + ] else null; + + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; + enableParallelBuilding = true; } -- cgit 1.4.1 From f4873eff166b5610ea36ee196a2cc93a391cd613 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:53:06 -0400 Subject: gst-plugins-good 1.x: fix Darwin build --- pkgs/development/libraries/gstreamer/good/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/good/default.nix b/pkgs/development/libraries/gstreamer/good/default.nix index a06747ddc90..51ad836b644 100644 --- a/pkgs/development/libraries/gstreamer/good/default.nix +++ b/pkgs/development/libraries/gstreamer/good/default.nix @@ -3,9 +3,12 @@ , libv4l, libdv, libavc1394, libiec61883 , libvpx, speex, flac, taglib , cairo, gdk_pixbuf, aalib, libcaca -, libsoup, pulseaudio +, libsoup, pulseaudio, libintlOrEmpty }: +let + inherit (stdenv.lib) optionals optionalString; +in stdenv.mkDerivation rec { name = "gst-plugins-good-1.4.5"; @@ -18,7 +21,7 @@ stdenv.mkDerivation rec { code, LGPL or LGPL-compatible for the supporting library). ''; license = licenses.lgpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ iyzsong ]; }; @@ -31,9 +34,12 @@ stdenv.mkDerivation rec { buildInputs = [ gst-plugins-base orc bzip2 - libv4l libdv libavc1394 libiec61883 - libvpx speex flac taglib + libdv libvpx speex flac taglib cairo gdk_pixbuf aalib libcaca - libsoup pulseaudio - ]; + libsoup + ] + ++ libintlOrEmpty + ++ optionals stdenv.isLinux [ libv4l pulseaudio libavc1394 libiec61883 ]; + + LDFLAGS = optionalString stdenv.isDarwin "-lintl"; } -- cgit 1.4.1 From 0115d512fe04aa25fa3ebb5542d0587358ed6edf Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:54:51 -0400 Subject: gst-plugins-bad 1.x: fix Darwin build --- pkgs/development/libraries/gstreamer/bad/default.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix index 96a094ca9cc..b4c962d9e54 100644 --- a/pkgs/development/libraries/gstreamer/bad/default.nix +++ b/pkgs/development/libraries/gstreamer/bad/default.nix @@ -5,11 +5,14 @@ , openjpeg, libopus, librsvg , wildmidi, fluidsynth, libvdpau, wayland , libwebp, xvidcore, gnutls -, mesa +, mesa, libintlOrEmpty }: assert faacSupport -> faac != null; +let + inherit (stdenv.lib) optional optionalString; +in stdenv.mkDerivation rec { name = "gst-plugins-bad-1.4.5"; @@ -23,7 +26,7 @@ stdenv.mkDerivation rec { a real live maintainer, or some actual wide use. ''; license = licenses.lgpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ iyzsong ]; }; @@ -39,7 +42,15 @@ stdenv.mkDerivation rec { faad2 libass libkate libmms libmodplug mpeg2dec mpg123 openjpeg libopus librsvg - wildmidi fluidsynth libvdpau wayland + fluidsynth libvdpau libwebp xvidcore gnutls mesa - ] ++ stdenv.lib.optional faacSupport faac; + ] + ++ libintlOrEmpty + ++ optional faacSupport faac + ++ optional stdenv.isLinux wayland + # wildmidi requires apple's OpenAL + # TODO: package apple's OpenAL, fix wildmidi, include on Darwin + ++ optional (!stdenv.isDarwin) wildmidi; + + LDFLAGS = optionalString stdenv.isDarwin "-lintl"; } -- cgit 1.4.1 From a936dd00111ec2f3737c92de9da2b75f7045759e Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:55:19 -0400 Subject: gst-plugins-ugly 1.x: fix Darwin build --- pkgs/development/libraries/gstreamer/ugly/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/ugly/default.nix b/pkgs/development/libraries/gstreamer/ugly/default.nix index 4e3d7eee78b..c13beb4d5f7 100644 --- a/pkgs/development/libraries/gstreamer/ugly/default.nix +++ b/pkgs/development/libraries/gstreamer/ugly/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, pkgconfig, python , gst-plugins-base, orc , a52dec, libcdio, libdvdread -, lame, libmad, libmpeg2, x264 +, lame, libmad, libmpeg2, x264, libintlOrEmpty }: stdenv.mkDerivation rec { @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { like. The code might be widely known to present patent problems. ''; license = licenses.lgpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ iyzsong ]; }; @@ -32,5 +32,7 @@ stdenv.mkDerivation rec { gst-plugins-base orc a52dec libcdio libdvdread lame libmad libmpeg2 x264 - ]; + ] ++ libintlOrEmpty; + + NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null; } -- cgit 1.4.1 From a2616e0370b0b067a26584948f56764c348a2d8a Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 21:56:57 -0400 Subject: gnonlin, gst-editing-services: enable Darwin --- pkgs/development/libraries/gstreamer/ges/default.nix | 2 +- pkgs/development/libraries/gstreamer/gnonlin/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/ges/default.nix b/pkgs/development/libraries/gstreamer/ges/default.nix index df7078a1365..47b09e95e6e 100644 --- a/pkgs/development/libraries/gstreamer/ges/default.nix +++ b/pkgs/development/libraries/gstreamer/ges/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { description = "Library for creation of audio/video non-linear editors"; homepage = "http://gstreamer.freedesktop.org"; license = licenses.lgpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ iyzsong ]; }; diff --git a/pkgs/development/libraries/gstreamer/gnonlin/default.nix b/pkgs/development/libraries/gstreamer/gnonlin/default.nix index 05113973a9d..4b6e7957f5c 100644 --- a/pkgs/development/libraries/gstreamer/gnonlin/default.nix +++ b/pkgs/development/libraries/gstreamer/gnonlin/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { applications. It introduces the concept of a timeline. ''; license = licenses.lgpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ iyzsong ]; }; -- cgit 1.4.1 From 4318768a101b01fa92d5b9f9b7f4249e99740f92 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 22:30:42 -0400 Subject: gstreamer 0.x: fix for Darwin --- .../libraries/gstreamer/legacy/gstreamer/darwin.patch | 14 ++++++++++++++ .../libraries/gstreamer/legacy/gstreamer/default.nix | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 pkgs/development/libraries/gstreamer/legacy/gstreamer/darwin.patch diff --git a/pkgs/development/libraries/gstreamer/legacy/gstreamer/darwin.patch b/pkgs/development/libraries/gstreamer/legacy/gstreamer/darwin.patch new file mode 100644 index 00000000000..67dfc34434d --- /dev/null +++ b/pkgs/development/libraries/gstreamer/legacy/gstreamer/darwin.patch @@ -0,0 +1,14 @@ +diff --git a/gst/gstdatetime.c b/gst/gstdatetime.c +index 60f709f..cdc7e75 100644 +--- a/gst/gstdatetime.c ++++ b/gst/gstdatetime.c +@@ -21,8 +21,8 @@ + #include "config.h" + #endif + +-#include "glib-compat-private.h" + #include "gst_private.h" ++#include "glib-compat-private.h" + #include "gstdatetime.h" + #include + #include diff --git a/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix b/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix index b608f891533..07b846f35b4 100644 --- a/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix +++ b/pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix @@ -16,6 +16,11 @@ stdenv.mkDerivation rec { patchPhase = '' sed -i -e 's/^ /\t/' docs/gst/Makefile.in docs/libs/Makefile.in docs/plugins/Makefile.in + '' + + stdenv.lib.optionalString stdenv.isDarwin '' + # Applying this patch manually to avoid a rebuild on Linux. Feel free to refactor later + # See https://trac.macports.org/ticket/40783 for explanation of patch + patch -p1 < ${./darwin.patch} ''; configureFlags = '' -- cgit 1.4.1 From 3001119d5326c6c4cea983546000b055c110bb75 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 23:10:45 -0400 Subject: gst-plugins-good 0.x: fix Darwin build --- .../libraries/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 d4db4fa8de5..1db7e4dbd55 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; }; -- cgit 1.4.1 From b2589bb0ba1308d1b664eac2046943142bcfd449 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 23:12:30 -0400 Subject: gst-plugins-ugly 0.x: fix Darwin build --- .../libraries/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 e4411fcefbb..99ac5a5ec54 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; }; -- cgit 1.4.1 From 626a047b2d1c7375e40adf7a1ebc57737566e514 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 23:13:42 -0400 Subject: gstreamermm: enable Darwin --- pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix b/pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix index 97a4638170f..ea1c31ccab8 100644 --- a/pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix +++ b/pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { homepage = http://www.gtkmm.org/; license = stdenv.lib.licenses.lgpl2Plus; maintainers = "Philip Lykke Carlsen "; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; }; } -- cgit 1.4.1