From d9cb65a263c841c0c84b81cdc7c4533547eea557 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 22 Apr 2023 20:43:34 +0000 Subject: wf-config: fix cross We need to tell meson we won't be running the tests when nativeCheckInputs won't be included, or it will fail when it can't find doctest. --- pkgs/applications/window-managers/wayfire/wf-config.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/window-managers/wayfire/wf-config.nix b/pkgs/applications/window-managers/wayfire/wf-config.nix index 0a8e5c0bcd7..19435a87395 100644 --- a/pkgs/applications/window-managers/wayfire/wf-config.nix +++ b/pkgs/applications/window-managers/wayfire/wf-config.nix @@ -44,6 +44,10 @@ stdenv.mkDerivation rec { # CMake is just used for finding doctest. dontUseCmakeConfigure = true; + mesonFlags = [ + (lib.mesonEnable "tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform)) + ]; + doCheck = true; meta = with lib; { -- cgit 1.4.1