File tree Expand file tree Collapse file tree
pkgs/by-name/si/sillytavern Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ makeBinaryWrapper ,
3+ buildNpmPackage ,
4+ nodejs ,
5+ fetchFromGitHub ,
6+ lib ,
7+ } :
8+ buildNpmPackage ( finalAttrs : {
9+ pname = "sillytavern" ;
10+ version = "1.13.0" ;
11+
12+ src = fetchFromGitHub {
13+ owner = "SillyTavern" ;
14+ repo = "SillyTavern" ;
15+ tag = finalAttrs . version ;
16+ hash = "sha256-HUlypAPadlad12J60Xfa30qE18II6MceVYkMqANWlyI=" ;
17+ } ;
18+ npmDepsHash = "sha256-IZMwDgazY+6oyuOlE7zdWcDn5D2/8v2mHX9yDBwK+4I=" ;
19+
20+ nativeBuildInputs = [ makeBinaryWrapper ] ;
21+
22+ dontNpmBuild = true ;
23+ installPhase = ''
24+ runHook preInstall
25+
26+ mkdir -p $out/{bin,opt}
27+ cp -r . $out/opt/sillytavern
28+ makeWrapper ${ lib . getExe nodejs } $out/bin/sillytavern \
29+ --add-flags $out/opt/sillytavern/server.js \
30+ --set-default NODE_ENV production
31+
32+ runHook postInstall
33+ '' ;
34+
35+ meta = {
36+ description = "LLM Frontend for Power Users" ;
37+ longDescription = ''
38+ SillyTavern is a user interface you can install on your computer (and Android phones) that allows you to interact with
39+ text generation AIs and chat/roleplay with characters you or the community create.
40+ '' ;
41+ downloadPage = "https://github.com/SillyTavern/SillyTavern/releases" ;
42+ homepage = "https://docs.sillytavern.app/" ;
43+ mainProgram = "sillytavern" ;
44+ license = lib . licenses . agpl3Only ;
45+ maintainers = [ lib . maintainers . wrvsrx ] ;
46+ } ;
47+ } )
You can’t perform that action at this time.
0 commit comments