mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08: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…
Add table
Add a link
Reference in a new issue