3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #275327 from happysalada/update_ollama

ollama: 0.1.11 -> 0.1.17
This commit is contained in:
Yt 2023-12-19 08:49:57 +00:00 committed by GitHub
commit aa4e2df3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"