File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Custom package definitions
22# These are packages not available in nixpkgs or requiring customization
33self : 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments