From 9ed9db69a4fb4eb7a476f11174a71349f770977d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Nov 2023 09:23:50 +0100 Subject: [PATCH] skip nixos tests in non-linux systems --- checks/flake-module.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/checks/flake-module.nix b/checks/flake-module.nix index d205b1b..2068709 100644 --- a/checks/flake-module.nix +++ b/checks/flake-module.nix @@ -1,15 +1,11 @@ { self, ... }: { perSystem = { pkgs + , lib , ... }: { - checks = - let - # this gives us a reference to our flake but also all flake inputs - checkArgs = { inherit self pkgs; }; - in - { - test = import ./test.nix checkArgs; - }; + checks = lib.optionalAttrs pkgs.stdenv.isLinux { + test = import ./test.nix { inherit self pkgs; }; + }; }; }