forked from steveyegge/gastown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
81 lines (73 loc) · 2.23 KB
/
flake.nix
File metadata and controls
81 lines (73 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
description = "Multi-agent orchestration system for Claude Code with persistent work tracking";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
beads.url = "github:steveyegge/beads";
};
outputs =
{
self,
nixpkgs,
flake-utils,
beads,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
# Go 1.25.8: beads v0.60.0 deps (charm.land/huh/v2) require it, nixpkgs has 1.25.7
# Remove when nixpkgs ships Go >= 1.25.8
goOverlay = final: prev: {
go_1_25 = prev.go_1_25.overrideAttrs {
version = "1.25.8";
src = prev.fetchurl {
url = "https://go.dev/dl/go1.25.8.src.tar.gz";
hash = "sha256-6YjUokRqx/4/baoImljpk2pSo4E1Wt7ByJgyMKjWxZ4=";
};
};
};
pkgs = import nixpkgs {
inherit system;
overlays = [ goOverlay ];
};
beadsPkg = beads.packages.${system}.default;
in
{
packages = {
gt = pkgs.buildGoModule {
pname = "gt";
version = "0.8.0";
src = ./.;
vendorHash = "sha256-XWv/slFm796AO928eqzVHms0uUX4ZMJk0I4mZz+kp54=";
ldflags = [
"-X github.com/steveyegge/gastown/internal/cmd.Build=nix"
"-X github.com/steveyegge/gastown/internal/cmd.BuiltProperly=1"
];
subPackages = [ "cmd/gt" ];
meta = with pkgs.lib; {
description = "Multi-agent orchestration system for Claude Code with persistent work tracking";
homepage = "https://github.com/steveyegge/gastown";
license = licenses.mit;
mainProgram = "gt";
};
};
default = self.packages.${system}.gt;
};
apps = {
gt = flake-utils.lib.mkApp {
drv = self.packages.${system}.gt;
};
default = self.apps.${system}.gt;
};
devShells.default = pkgs.mkShell {
buildInputs = [
beadsPkg
pkgs.go_1_25
pkgs.gopls
pkgs.gotools
pkgs.go-tools
];
};
}
);
}