about summary refs log tree commit diff
path: root/pkgs/tools/misc/ollama
diff options
context:
space:
mode:
authorabysssol <abysssol@pm.me>2024-02-21 00:04:35 -0500
committerabysssol <abysssol@pm.me>2024-02-25 13:35:23 -0500
commitc75dd8bff734836bee446f35265c1584acc3ca0b (patch)
treea244ecd200016078d08829efee640e6937d3dee5 /pkgs/tools/misc/ollama
parente2fc21a87564ca49218d96bfbc062dfa060de888 (diff)
ollama: 0.1.24 -> 0.1.26
Diffstat (limited to 'pkgs/tools/misc/ollama')
-rw-r--r--pkgs/tools/misc/ollama/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/misc/ollama/default.nix b/pkgs/tools/misc/ollama/default.nix
index 6ce576644d49a..f3e72efb25c92 100644
--- a/pkgs/tools/misc/ollama/default.nix
+++ b/pkgs/tools/misc/ollama/default.nix
@@ -23,7 +23,7 @@
 
 let
   pname = "ollama";
-  version = "0.1.24";
+  version = "0.1.26";
 
   warnIfNotLinux = warning: (lib.warnIfNot stdenv.isLinux warning stdenv.isLinux);
   gpuWarning = api: "building ollama with ${api} is only supported on linux; falling back to cpu";
@@ -43,7 +43,7 @@ let
     owner = "jmorganca";
     repo = "ollama";
     rev = "v${version}";
-    hash = "sha256-GwZA1QUH8I8m2bGToIcMMaB5MBnioQP4+n1SauUJYP8=";
+    hash = "sha256-Kw3tt9ayEMgI2V6OeaOkWfNwqfCL7MDD/nN5iXk5LnY=";
     fetchSubmodules = true;
   };
   preparePatch = patch: hash: fetchpatch {
@@ -55,7 +55,7 @@ let
   inherit (lib) licenses platforms maintainers;
   ollama = {
     inherit pname version src;
-    vendorHash = "sha256-wXRbfnkbeXPTOalm7SFLvHQ9j46S/yLNbFy+OWNSamQ=";
+    vendorHash = "sha256-zTrBighPBqZ9hhkEV3UawJZUYyPRay7+P6wkhDtpY7M=";
 
     nativeBuildInputs = [
       cmake
@@ -73,8 +73,8 @@ let
 
       # ollama's patches of llama.cpp's example server
       # `ollama/llm/generate/gen_common.sh` -> "apply temporary patches until fix is upstream"
-      (preparePatch "01-cache.diff" "sha256-PC4yN98hFvK+PEITiDihL8ki3bJuLVXrAm0CGf8GPJE=")
-      (preparePatch "02-shutdown.diff" "sha256-cElAp9Z9exxN964vB/YFuBhZoEcoAwGSMCnbh+l/V4Q=")
+      (preparePatch "01-cache.diff" "sha256-MTTln2G0G8dntihUzEjPM1ruTsApb4ZToBczJb8EG68=")
+      (preparePatch "02-cudaleaks.diff" "sha256-Cu7E9iEcvddPL9mPPI5Z96qmwWigi3f0WgSpPRjGc88=")
     ];
     postPatch = ''
       # use a patch from the nix store in the `go generate` script