mailpit: disallow building nixos tests on darwin

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
(cherry picked from commit a921361c0a)
This commit is contained in:
phanirithvij
2026-05-18 11:42:18 +05:30
committed by github-actions[bot]
parent 3c01370572
commit 86e668d9b9

View File

@@ -83,13 +83,15 @@ buildGoModule (finalAttrs: {
passthru = {
tests = {
inherit (nixosTests) mailpit;
# cannot use versionCheckHook due to the extra --no-release-check flag
# for workarounds and other solutions see https://github.com/NixOS/nixpkgs/pull/486143#discussion_r2754533347
version = testers.testVersion {
package = mailpit;
command = "mailpit version --no-release-check";
};
}
// lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
inherit (nixosTests) mailpit;
};
updateScript = {