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.

23 lines
655 B
Diff
Raw Normal View History

2024-09-19 13:27:19 +00:00
diff --git a/llm/generate/gen_common.sh b/llm/generate/gen_common.sh
index 3825c155..d22eccd2 100644
2024-03-31 19:16:03 +00:00
--- a/llm/generate/gen_common.sh
+++ b/llm/generate/gen_common.sh
2024-09-19 13:27:19 +00:00
@@ -69,6 +69,8 @@ git_module_setup() {
}
2024-03-31 19:16:03 +00:00
2024-09-19 13:27:19 +00:00
apply_patches() {
2024-03-31 19:16:03 +00:00
+ return
+
2024-09-19 13:27:19 +00:00
# apply temporary patches until fix is upstream
for patch in ../patches/*.patch; do
git -c 'user.name=nobody' -c 'user.email=<>' -C ${LLAMACPP_DIR} am ${patch}
@@ -133,6 +135,8 @@ install() {
2024-03-31 19:16:03 +00:00
# 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