Skip to content

Commit

Permalink
feat(pkgs): add SillyTavern
Browse files Browse the repository at this point in the history
  • Loading branch information
wrvsrx committed Jul 7, 2024
1 parent 7894b6f commit 802bc9a
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkgs/to-normal-packages/SillyTavern/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
buildNpmPackage,
importNpmLock,
nodejs,
bash,
source,
}:
buildNpmPackage {
inherit (source) pname version src;
inherit (importNpmLock) npmConfigHook;
npmDeps = importNpmLock { npmRoot = source.src; };
buildPhase = "true";
installPhase = ''
mkdir -p $out/{bin,lib}
mv * $out/lib
cat > $out/bin/SillyTavern <<- EOF
#!${bash}/bin/bash
${nodejs}/bin/node $out/lib/server.js \$@
EOF
chmod +x $out/bin/SillyTavern
'';
}
1 change: 1 addition & 0 deletions pkgs/to-normal-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ rec {
};
inherit pkgs;
};
SillyTavern = callPackage ./SillyTavern { source = sources.SillyTavern; };

# my packages
giraffe-wallpaper = callIFD {
Expand Down
21 changes: 21 additions & 0 deletions pkgs/to-sources/_sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@
},
"version": "1.3.9"
},
"SillyTavern": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "SillyTavern",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "wrvsrx",
"repo": "SillyTavernFork",
"rev": "1.12.3-fix-lock",
"sha256": "sha256-nSR5wykJ9u1WAa+QJoLx1a5O0zH+hymb3wc43a6FiKk=",
"sparseCheckout": [],
"type": "github"
},
"version": "1.12.3-fix-lock"
},
"amgcl": {
"cargoLocks": null,
"date": null,
Expand Down
11 changes: 11 additions & 0 deletions pkgs/to-sources/_sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
sha256 = "sha256-z/zROQYpHvGoGzacHA6Qdkjs0kNjZohzaR9EhmcEqyE=";
};
};
SillyTavern = {
pname = "SillyTavern";
version = "1.12.3-fix-lock";
src = fetchFromGitHub {
owner = "wrvsrx";
repo = "SillyTavernFork";
rev = "1.12.3-fix-lock";
fetchSubmodules = false;
sha256 = "sha256-nSR5wykJ9u1WAa+QJoLx1a5O0zH+hymb3wc43a6FiKk=";
};
};
amgcl = {
pname = "amgcl";
version = "1.4.4";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/to-sources/nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,7 @@ git.sparseCheckout = [ "Sans/OTC" ]
src.manual = "Serif2.002"
fetch.github = "notofonts/noto-cjk"
git.sparseCheckout = [ "Serif/OTC" ]

[SillyTavern]
src.manual = "1.12.3-fix-lock"
fetch.github = "wrvsrx/SillyTavernFork"

0 comments on commit 802bc9a

Please sign in to comment.