From 2f3b49748cf8a33867d3e2f924e1d8dbcd73ea0e Mon Sep 17 00:00:00 2001 From: isabel Date: Wed, 28 Jan 2026 21:46:56 +0000 Subject: [PATCH] cocoon: add nixos test to passthru --- pkgs/by-name/co/cocoon/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/co/cocoon/package.nix b/pkgs/by-name/co/cocoon/package.nix index b282d33e26c5..dc819eba7a26 100644 --- a/pkgs/by-name/co/cocoon/package.nix +++ b/pkgs/by-name/co/cocoon/package.nix @@ -2,6 +2,8 @@ lib, buildGoModule, fetchFromGitHub, + nixosTests, + stdenvNoCC, nix-update-script, }: buildGoModule (finalAttrs: { @@ -23,7 +25,10 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-bux3OfHT8f1FVpBAZUP23vo8M6h8nPTJbi/GTUzhdc4="; - passthru.updateScript = nix-update-script { }; + passthru = { + tests = lib.optionalAttrs stdenvNoCC.hostPlatform.isLinux { inherit (nixosTests) cocoon; }; + updateScript = nix-update-script { }; + }; meta = { description = "ATProtocol Personal Data Server written in Go with a SQLite block and blob store";