nixpkgs/pkgs/tools/misc/ollama/cmake-include.patch
abysssol 828b4dc30e ollama: 0.1.17 -> 0.1.24
Remove outdated patches and substitution of llama.cpp server.

Patch source build script to remove git.
Ollama's `go generate` script assumes the source is an
initialized git repository, which it is not in nix.
So, remove usage of `git` and replace it with `patch`.
Also replace call to `g++` with `$CXX`.

Run `go generate` to build dependencies using
ollama's custom build script.
2024-02-16 16:23:25 -05:00

8 lines
292 B
Diff

--- a/llm/llama.cpp/examples/server/CMakeLists.txt
+++ b/llm/llama.cpp/examples/server/CMakeLists.txt
@@ -11,3 +11,4 @@
TARGET_LINK_LIBRARIES(${TARGET} PRIVATE ws2_32)
endif()
target_compile_features(${TARGET} PRIVATE cxx_std_11)
+include (../../../ext_server/CMakeLists.txt) # ollama