Skip to content

Commit 4dd91a3

Browse files
stackptrclaude
andcommitted
feat: add agentsview package
Pre-built binary package for agentsview, a local-first viewer for AI agent coding sessions. Supports x86_64-linux and aarch64-darwin. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fd09c9f commit 4dd91a3

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

overlays/custom-packages.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Custom package definitions
22
# These are packages not available in nixpkgs or requiring customization
33
self: super: {
4+
# Agentsview session viewer
5+
agentsview = super.callPackage ./../packages/agentsview/package.nix {};
6+
47
# Claude desktop app
58
claude-desktop = super.callPackage ./../packages/claude-desktop/package.nix {};
69

packages/agentsview/package.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
autoPatchelfHook,
6+
}: let
7+
version = "0.15.0";
8+
9+
sources = {
10+
x86_64-linux = {
11+
url = "https://github.com/wesm/agentsview/releases/download/v${version}/agentsview_${version}_linux_amd64.tar.gz";
12+
hash = "sha256-Ycq5fkkUCxQ6SXXdUx5Sel7lOur8E0UieoBEca1R61g=";
13+
};
14+
aarch64-darwin = {
15+
url = "https://github.com/wesm/agentsview/releases/download/v${version}/agentsview_${version}_darwin_arm64.tar.gz";
16+
hash = "sha256-OCEqzRoozWklgajOHNwATSl+aCeog82xds3U+ElRw2g=";
17+
};
18+
};
19+
20+
src = fetchurl (sources.${stdenv.hostPlatform.system} or (throw "unsupported system: ${stdenv.hostPlatform.system}"));
21+
in
22+
stdenv.mkDerivation {
23+
pname = "agentsview";
24+
inherit version src;
25+
26+
sourceRoot = ".";
27+
28+
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [autoPatchelfHook];
29+
30+
installPhase = ''
31+
runHook preInstall
32+
install -Dm755 agentsview $out/bin/agentsview
33+
runHook postInstall
34+
'';
35+
36+
meta = with lib; {
37+
description = "Local-first viewer for AI agent coding sessions";
38+
homepage = "https://github.com/wesm/agentsview";
39+
license = licenses.mit;
40+
mainProgram = "agentsview";
41+
platforms = builtins.attrNames sources;
42+
};
43+
}

0 commit comments

Comments
 (0)