about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-04-23 12:31:36 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-04-23 12:31:36 -0500
commitc214bc9aeec943345e095b88a94eabc6fba9671f (patch)
tree460d8d677424259e3c285b215efda64827f6fef9 /pkgs/development/libraries
parentbc7c7b2b09ed93910a24645e284250351c9d023d (diff)
downloadnixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar.gz
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar.bz2
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar.lz
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar.xz
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.tar.zst
nixlib-c214bc9aeec943345e095b88a94eabc6fba9671f.zip
gstreamer: fix on Darwin
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/gstreamer/core/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix
index ab3f78767a1c..5845c8c50db2 100644
--- a/pkgs/development/libraries/gstreamer/core/default.nix
+++ b/pkgs/development/libraries/gstreamer/core/default.nix
@@ -2,17 +2,18 @@
 , pkgconfig, gettext, gobjectIntrospection
 , bison, flex, python3, glib, makeWrapper
 , libcap,libunwind, darwin
+, lib
 }:
 
 stdenv.mkDerivation rec {
   name = "gstreamer-1.14.0";
 
-  meta = {
+  meta = with lib ;{
     description = "Open source multimedia framework";
     homepage = https://gstreamer.freedesktop.org;
-    license = stdenv.lib.licenses.lgpl2Plus;
-    platforms = stdenv.lib.platforms.unix;
-    maintainers = [ stdenv.lib.maintainers.ttuegel ];
+    license = licenses.lgpl2Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ ttuegel matthewbauer ];
   };
 
   src = fetchurl {
@@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
     sha256 = "0vj6k01lp2yva6rfd95fkyng9jdr62gkz0x8d2l81dyly1ki6dpw";
   };
 
-  patches = [ 
+  patches = [
     (fetchpatch {
         url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370411";
         sha256 = "16plzzmkk906k4892zq68j3c9z8vdma5nxzlviq20jfv04ykhmk2";
@@ -34,7 +35,9 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [
     meson ninja pkgconfig gettext bison flex python3 makeWrapper gobjectIntrospection
   ];
-  buildInputs = [ libcap libunwind ] ++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
+  buildInputs =
+       lib.optionals stdenv.isLinux [ libcap libunwind ]
+    ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.CoreServices;
 
   propagatedBuildInputs = [ glib ];