Compare commits

..

No commits in common. "10bc61746e77b2df7711a1c70608e41567ea13dc" and "18013da7776f0dba6dabdcbe72a069c1c924a79c" have entirely different histories.

6 changed files with 22 additions and 22 deletions

View file

@ -1,10 +1,25 @@
{ {
pkgs,
config, config,
flake,
mkOizysModule, mkOizysModule,
flake,
... ...
}: }:
let
selfPackages = (flake.pkgs "self");
pyWithLlm = (
pkgs.python3.withPackages (_: [
selfPackages.llm
selfPackages.llm-claude-3
])
);
llm-with-plugins = (
pkgs.writeShellScriptBin "llm" ''
exec ${pyWithLlm}/bin/llm "$@"
''
);
in
mkOizysModule config "llm" { mkOizysModule config "llm" {
environment.systemPackages = [ (flake.pkgs "self").llm-with-plugins ]; environment.systemPackages = [ llm-with-plugins ];
} }

View file

@ -1,4 +1,7 @@
{ 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 { };
@ -6,5 +9,6 @@
distrobox = pkgs.callPackage ./distrobox { }; distrobox = pkgs.callPackage ./distrobox { };
llm-with-plugins = pkgs.callPackage ./llm/llm-with-plugins { }; llm = python3Packages.callPackage ./llm { };
llm-claude-3 = python3Packages.callPackage ./llm-plugins/llm-claude-3 { };
} }

View file

@ -1,19 +0,0 @@
{
pkgs,
...
}:
let
inherit (pkgs) python3Packages;
llm = python3Packages.callPackage ../llm { };
llm-claude-3 = python3Packages.callPackage ../llm-claude-3 { };
pyWithLlm = (
pkgs.python3.withPackages (_: [
llm
llm-claude-3
])
);
in
pkgs.writeShellScriptBin "llm" ''
exec ${pyWithLlm}/bin/llm "$@"
''