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:
parent
5f3869dfd2
commit
dfcebb55c8
1 changed files with 3 additions and 1 deletions
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue