From dfcebb55c8e8165208c4a802335353d2e7517341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 17 Nov 2024 13:14:19 +0100 Subject: [PATCH] only export nixos tests on Linux --- pkgs/sops-install-secrets/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/sops-install-secrets/default.nix b/pkgs/sops-install-secrets/default.nix index 1badfb6..52025b0 100644 --- a/pkgs/sops-install-secrets/default.nix +++ b/pkgs/sops-install-secrets/default.nix @@ -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" ];