nixpkgs/pkgs/by-name/ol/ollama/disable-git.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
580 B
Diff
Raw Normal View History

2024-03-31 22:16:03 +03:00
--- 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