skip nixos tests in non-linux systems

This commit is contained in:
Jörg Thalheim 2023-11-19 09:23:50 +01:00
parent c4f64d53c4
commit 9ed9db69a4

View File

@ -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; };
};
};
}