mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-14 14:59:52 +00: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;
|
||
|
};
|
||
|
}
|