mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-29 07:34:18 +01:00
23 lines
462 B
Nix
23 lines
462 B
Nix
|
{
|
||
|
perSystem =
|
||
|
{ config, lib, ... }:
|
||
|
{
|
||
|
apps =
|
||
|
let
|
||
|
inherit (config.packages) default;
|
||
|
binaries = [
|
||
|
"llama"
|
||
|
"llama-embedding"
|
||
|
"llama-server"
|
||
|
"quantize"
|
||
|
"train-text-from-scratch"
|
||
|
];
|
||
|
mkApp = name: {
|
||
|
type = "app";
|
||
|
program = "${default}/bin/${name}";
|
||
|
};
|
||
|
in
|
||
|
lib.genAttrs binaries mkApp;
|
||
|
};
|
||
|
}
|