libvdpau: add -lX11 on darwin

Seems to be necessary for some reason. Otherwise we are missing
symbols.
This commit is contained in:
Matthew Bauer 2019-02-05 19:27:39 -05:00
parent c3f6a178b1
commit 72f8f89849

View File

@ -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; {