summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-04-22 20:43:34 +0000
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-04-22 23:30:45 -0300
commitd9cb65a263c841c0c84b81cdc7c4533547eea557 (patch)
tree2f69139f28059bde78b49c8312b313e8bea70168
parentcf8e955712b7c3f54c7584ba4b8c8e685de1152f (diff)
downloadnixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar.gz
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar.bz2
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar.lz
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar.xz
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.tar.zst
nixpkgs-d9cb65a263c841c0c84b81cdc7c4533547eea557.zip
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.
-rw-r--r--pkgs/applications/window-managers/wayfire/wf-config.nix4
1 files changed, 4 insertions, 0 deletions
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; {