From 72f8f89849ebe341c697486f63df7fbac35f6b5c Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 5 Feb 2019 19:27:39 -0500 Subject: [PATCH] libvdpau: add -lX11 on darwin Seems to be necessary for some reason. Otherwise we are missing symbols. --- pkgs/development/libraries/libvdpau/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index dd3703e6aeb..52359a3a4cd 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; {