From a6d7c491e41b249fbd934397ffbbc6293bd46e19 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 22 Apr 2025 14:55:42 +0200 Subject: [PATCH] Fix: clnixos-integration tests only work on linux --- clanServices/hello-world/flake-module.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/clanServices/hello-world/flake-module.nix b/clanServices/hello-world/flake-module.nix index 1d9f446fd..c76eca5a8 100644 --- a/clanServices/hello-world/flake-module.nix +++ b/clanServices/hello-world/flake-module.nix @@ -41,10 +41,14 @@ in 2. To run the test nix build .#checks.x86_64-linux.hello-service */ - checks.hello-service = import ./tests/vm/default.nix { - inherit module; - inherit self inputs pkgs; - clanLib = self.clanLib; - }; + checks = + # Currently we don't support nixos-integration tests on darwin + lib.optionalAttrs (pkgs.stdenv.isLinux) { + hello-service = import ./tests/vm/default.nix { + inherit module; + inherit self inputs pkgs; + clanLib = self.clanLib; + }; + }; }; }