diff --git a/pkgs/development/libraries/libvdpau/default.nix b/pkgs/development/libraries/libvdpau/default.nix index 107c8448795..446f2917fe7 100644 --- a/pkgs/development/libraries/libvdpau/default.nix +++ b/pkgs/development/libraries/libvdpau/default.nix @@ -12,7 +12,8 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ xorg.libX11 ]; - configureFlags = [ "--with-module-dir=${mesa_noglu.driverLink}/lib/vdpau" ]; + configureFlags = stdenv.lib.optional stdenv.isLinux + "--with-module-dir=${mesa_noglu.driverLink}/lib/vdpau"; installFlags = [ "moduledir=$(out)/lib/vdpau" ];