summary refs log tree commit diff
diff options
context:
space:
mode:
authorVäinö Järvelä <vaino.jarvela@reaktor.com>2018-02-23 20:34:26 +0200
committerVäinö Järvelä <vaino.jarvela@reaktor.com>2018-02-23 21:20:48 +0200
commit6166507ca5eda4dae1c731b054938b816c644911 (patch)
treea66e5e0a3e800ce6b7a03c12985f8a4613e02f56
parentcda0f9fedef64f08fdd97ca81d48a5aaea047006 (diff)
downloadnixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar.gz
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar.bz2
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar.lz
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar.xz
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.tar.zst
nixpkgs-6166507ca5eda4dae1c731b054938b816c644911.zip
gst-plugins-bad: Add Darwin support
Had to remove mjpegtools and Cocoa support because of compile
problems.
-rw-r--r--pkgs/development/libraries/gstreamer/bad/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix
index c033140d8dc..69ade889919 100644
--- a/pkgs/development/libraries/gstreamer/bad/default.nix
+++ b/pkgs/development/libraries/gstreamer/bad/default.nix
@@ -35,9 +35,13 @@ stdenv.mkDerivation rec {
       a real live maintainer, or some actual wide use.
     '';
     license     = licenses.lgpl2Plus;
-    platforms   = platforms.linux;
+    platforms   = platforms.linux ++ platforms.darwin;
   };
 
+  # TODO: Fix Cocoa build. The problem was ARC, which might be related to too
+  #       old version of Apple SDK's.
+  configureFlags = optional stdenv.isDarwin "--disable-cocoa";
+
   patchPhase = ''
     sed -i 's/openjpeg-2.2/openjpeg-${openJpegVersion}/' ext/openjpeg/*
   '';
@@ -58,7 +62,7 @@ stdenv.mkDerivation rec {
     openjpeg libopus librsvg
     fluidsynth libvdpau
     libwebp xvidcore gnutls mesa
-    mjpegtools libgme openssl x265 libxml2
+    libgme openssl x265 libxml2
   ]
     ++ libintlOrEmpty
     ++ optional faacSupport faac
@@ -67,7 +71,9 @@ stdenv.mkDerivation rec {
     ++ optional stdenv.isLinux wayland
     # wildmidi requires apple's OpenAL
     # TODO: package apple's OpenAL, fix wildmidi, include on Darwin
-    ++ optional (!stdenv.isDarwin) wildmidi;
+    ++ optional (!stdenv.isDarwin) wildmidi
+    # TODO: mjpegtools uint64_t is not compatible with guint64 on Darwin
+    ++ optional (!stdenv.isDarwin) mjpegtools;
 
   LDFLAGS = optionalString stdenv.isDarwin "-lintl";