wayland: allow building without tests

This commit is contained in:
Weijia Wang 2023-03-22 18:15:22 +02:00
parent 396918ad01
commit 3d1d0bf910

View file

@ -9,6 +9,7 @@
, expat
, libxml2
, withLibraries ? stdenv.isLinux
, withTests ? stdenv.isLinux
, libffi
, withDocumentation ? withLibraries && stdenv.hostPlatform == stdenv.buildPlatform
, graphviz-nox
@ -24,6 +25,9 @@
# Documentation is only built when building libraries.
assert withDocumentation -> withLibraries;
# Tests are only built when building libraries.
assert withTests -> withLibraries;
let
isCross = stdenv.buildPlatform != stdenv.hostPlatform;
in
@ -50,7 +54,7 @@ stdenv.mkDerivation rec {
mesonFlags = [
"-Ddocumentation=${lib.boolToString withDocumentation}"
"-Dlibraries=${lib.boolToString withLibraries}"
"-Dtests=${lib.boolToString withLibraries}"
"-Dtests=${lib.boolToString withTests}"
];
depsBuildBuild = [