Skip to content

Commit

Permalink
add bin path option
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwaig committed Feb 9, 2024
1 parent d48979f commit 9afa045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/tools/misc/ollama/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, buildGoModule
, fetchFromGitHub
, llama-cpp
, llama-cpp-bin-path ? "bin/llama-cpp-server"
}:

buildGoModule rec {
Expand All @@ -26,7 +27,7 @@ buildGoModule rec {

postPatch = ''
substituteInPlace llm/llama.go \
--subst-var-by llamaCppServer "${llama-cpp}/bin/llama-cpp-server"
--subst-var-by llamaCppServer "${llama-cpp}/${llama-cpp-bin-path}"
substituteInPlace server/routes_test.go --replace "0.0.0" "${version}"
'';

Expand Down

0 comments on commit 9afa045

Please sign in to comment.