3
0
Fork 0
forked from mirrors/nixpkgs

dav1d: Add optional Vulkan support (experimental)

This commit is contained in:
Michael Weiss 2019-08-27 23:20:06 +02:00
parent 0a72c32723
commit 61ba5d88ef
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -1,8 +1,11 @@
{ stdenv, fetchFromGitLab
, meson, ninja, nasm, pkgconfig
, withTools ? false, SDL2
, useVulkan ? false, libplacebo, vulkan-loader, vulkan-headers
}:
assert useVulkan -> withTools;
stdenv.mkDerivation rec {
pname = "dav1d";
version = "0.4.0";
@ -17,7 +20,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja nasm pkgconfig ];
# TODO: doxygen (currently only HTML and not build by default).
buildInputs = stdenv.lib.optional withTools SDL2;
buildInputs = stdenv.lib.optional withTools SDL2
++ stdenv.lib.optionals useVulkan [ libplacebo vulkan-loader vulkan-headers ];
mesonFlags= [
"-Denable_tools=${stdenv.lib.boolToString withTools}"