forked from mirrors/nixpkgs
dav1d: Add optional Vulkan support (experimental)
This commit is contained in:
parent
0a72c32723
commit
61ba5d88ef
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue