From fc45a81bc642b9ef33d9004f2b363d558438a6c9 Mon Sep 17 00:00:00 2001 From: Faez Shakil Date: Sat, 17 Jun 2023 17:13:05 +0500 Subject: [PATCH] exposed modules so that they can be invoked by nix run github:ggerganov/llama.cpp#server etc (#1863) --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index f3180c841bf0b..bba3d71f7437b 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,19 @@ ''; meta.mainProgram = "llama"; }; + apps.llama-server = { + type = "app"; + program = "${self.packages.${system}.default}/bin/llama-server"; + }; + apps.llama-embedding = { + type = "app"; + program = "${self.packages.${system}.default}/bin/embedding"; + }; + apps.llama = { + type = "app"; + program = "${self.packages.${system}.default}/bin/llama"; + }; + apps.default = self.apps.${system}.llama; devShells.default = pkgs.mkShell { packages = with pkgs; [ cmake