dav1d: Add withTools but disable all tools by default

This commit is contained in:
Michael Weiss 2019-08-06 12:51:12 +02:00
parent f63dbf3c94
commit 9bf6b0980c
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitLab
, meson, ninja, nasm
, meson, ninja, nasm, pkgconfig
, withTools ? false, SDL2
}:
stdenv.mkDerivation rec {
@ -14,8 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "1fbalfzw8j00vwbrh9h8kjdx6h99dr10vmvbpg3rhsspmxq9h66h";
};
nativeBuildInputs = [ meson ninja nasm ];
nativeBuildInputs = [ meson ninja nasm pkgconfig ];
# TODO: doxygen (currently only HTML and not build by default).
buildInputs = stdenv.lib.optional withTools SDL2;
mesonFlags= [
"-Denable_tools=${stdenv.lib.boolToString withTools}"
];
meta = with stdenv.lib; {
description = "A cross-platform AV1 decoder focused on speed and correctness";