]> git.giacomolli.uk - onechat/blob - nix/package.nix
Send messages to subagents with tell
[onechat] / nix / package.nix
1 {
2 lib,
3 buildGoModule,
4 src,
5 }:
6 buildGoModule {
7 pname = "onechat";
8 version = "0.1.0";
9 inherit src;
10
11 subPackages = [ "." ];
12 vendorHash = "sha256-Mpw1XigL2ARm8oTKwutBLHxdLChSfK1ZbGRaNww8jkk=";
13
14 # The flake check runs the full replay.
15 checkFlags = [ "-short" ];
16
17 doInstallCheck = true;
18 installCheckPhase = ''
19 runHook preInstallCheck
20 test "$("$out/bin/onechat")" = onechat
21 runHook postInstallCheck
22 '';
23
24 meta = {
25 description = "OneChat";
26 mainProgram = "onechat";
27 platforms = lib.platforms.linux;
28 };
29 }