nixpkgs/pkgs/by-name/ol/ollama/disable-git.patch
2024-05-18 04:04:08 -04:00

21 lines
580 B
Diff

--- a/llm/generate/gen_common.sh
+++ b/llm/generate/gen_common.sh
@@ -65,6 +65,8 @@
echo 'add_subdirectory(../ext_server ext_server) # ollama' >>${LLAMACPP_DIR}/CMakeLists.txt
fi
+ return
+
if [ -n "$(ls -A ../patches/*.diff)" ]; then
# apply temporary patches until fix is upstream
for patch in ../patches/*.diff; do
@@ -110,6 +112,8 @@
# Keep the local tree clean after we're done with the build
cleanup() {
+ return
+
(cd ${LLAMACPP_DIR}/ && git checkout CMakeLists.txt)
if [ -n "$(ls -A ../patches/*.diff)" ]; then