From cdbfd046bffaf2a61ae1b9ef6aecb68fb6b312ec Mon Sep 17 00:00:00 2001 From: happysalada Date: Tue, 19 Dec 2023 05:16:15 +0100 Subject: [PATCH] ollama: 0.1.11 -> 0.1.17 --- pkgs/tools/misc/ollama/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/ollama/default.nix b/pkgs/tools/misc/ollama/default.nix index c0ac7f415f95..2176582e1fe9 100644 --- a/pkgs/tools/misc/ollama/default.nix +++ b/pkgs/tools/misc/ollama/default.nix @@ -2,18 +2,17 @@ , buildGoModule , fetchFromGitHub , llama-cpp -, stdenv }: buildGoModule rec { pname = "ollama"; - version = "0.1.11"; + version = "0.1.17"; src = fetchFromGitHub { owner = "jmorganca"; repo = "ollama"; rev = "v${version}"; - hash = "sha256-Jc6w+zQS/L3GKbfCaJO281LAgVdxNrseT0GX04N9MMY="; + hash = "sha256-eXukNn9Lu1hF19GEi7S7a96qktsjnmXCUp38gw+3MzY="; }; patches = [ @@ -28,9 +27,10 @@ buildGoModule rec { postPatch = '' substituteInPlace llm/llama.go \ --subst-var-by llamaCppServer "${llama-cpp}/bin/llama-cpp-server" + substituteInPlace server/routes_test.go --replace "0.0.0" "${version}" ''; - vendorHash = "sha256-fuSHaDDpkuQThYVNoEjnHgWkgh/LFLNHNss5Gezlv5w="; + vendorHash = "sha256-yGdCsTJtvdwHw21v0Ot6I8gxtccAvNzZyRu1T0vaius="; ldflags = [ "-s"