mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 03:07:31 -06:00
needlessly reorganize llm and plugins
This commit is contained in:
parent
18013da777
commit
d27d5b9a52
5 changed files with 21 additions and 5 deletions
|
@ -1,7 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
inherit (pkgs) python3Packages;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
|
nimlangserver = pkgs.callPackage ./nim/nimlangserver { };
|
||||||
procs = pkgs.callPackage ./nim/procs { };
|
procs = pkgs.callPackage ./nim/procs { };
|
||||||
|
@ -9,6 +6,6 @@ in
|
||||||
|
|
||||||
distrobox = pkgs.callPackage ./distrobox { };
|
distrobox = pkgs.callPackage ./distrobox { };
|
||||||
|
|
||||||
llm = python3Packages.callPackage ./llm { };
|
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins {};
|
||||||
llm-claude-3 = python3Packages.callPackage ./llm-plugins/llm-claude-3 { };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
19
pkgs/llm/llm-with-plugins/default.nix
Normal file
19
pkgs/llm/llm-with-plugins/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (pkgs) python3Packages;
|
||||||
|
llm = python3Packages.callPackage ../llm { };
|
||||||
|
llm-claude-3 = python3Packages.callPackage ../llm-plugins/llm-claude-3 { };
|
||||||
|
|
||||||
|
pyWithLlm = (
|
||||||
|
pkgs.python3.withPackages (_: [
|
||||||
|
llm
|
||||||
|
llm-claude-3
|
||||||
|
])
|
||||||
|
);
|
||||||
|
in
|
||||||
|
pkgs.writeShellScriptBin "llm" ''
|
||||||
|
exec ${pyWithLlm}/bin/llm "$@"
|
||||||
|
''
|
Loading…
Reference in a new issue