about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-02-05 19:27:39 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2019-02-05 19:27:39 -0500
commit72f8f89849ebe341c697486f63df7fbac35f6b5c (patch)
tree0d07bec7ecec7f33ccb2f7cf85aba9d9f17eb3bf
parentc3f6a178b1891e9bff706f000daf9296c927f069 (diff)
downloadnixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar.gz
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar.bz2
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar.lz
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar.xz
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.tar.zst
nixlib-72f8f89849ebe341c697486f63df7fbac35f6b5c.zip
libvdpau: add -lX11 on darwin
Seems to be necessary for some reason. Otherwise we are missing
symbols.
-rw-r--r--pkgs/development/libraries/libvdpau/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix
index dd3703e6aebd..52359a3a4cd6 100644
--- a/pkgs/development/libraries/libvdpau/default.nix
+++ b/pkgs/development/libraries/libvdpau/default.nix
@@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
   configureFlags = stdenv.lib.optional stdenv.isLinux
     "--with-module-dir=${libGL_driver.driverLink}/lib/vdpau";
 
+  NIX_LDFLAGS = if stdenv.isDarwin then "-lX11" else null;
+
   installFlags = [ "moduledir=$(out)/lib/vdpau" ];
 
   meta = with stdenv.lib; {