1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

only export nixos tests on Linux

This commit is contained in:
Jörg Thalheim 2024-11-17 13:14:19 +01:00 committed by Jörg Thalheim
parent 5f3869dfd2
commit dfcebb55c8

View file

@ -21,7 +21,9 @@ buildGoModule {
# requires root privileges for tests
doCheck = false;
passthru.tests = callPackages ./nixos-test.nix { };
passthru = {
tests = lib.optionalAttrs stdenv.isLinux (callPackages ./nixos-test.nix { });
};
outputs = [ "out" ] ++ lib.lists.optionals (stdenv.isLinux) [ "unittest" ];