forked from mirrors/nixpkgs
Merge pull request #275327 from happysalada/update_ollama
ollama: 0.1.11 -> 0.1.17
This commit is contained in:
commit
aa4e2df3e3
|
@ -2,18 +2,17 @@
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, llama-cpp
|
, llama-cpp
|
||||||
, stdenv
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ollama";
|
pname = "ollama";
|
||||||
version = "0.1.11";
|
version = "0.1.17";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jmorganca";
|
owner = "jmorganca";
|
||||||
repo = "ollama";
|
repo = "ollama";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-Jc6w+zQS/L3GKbfCaJO281LAgVdxNrseT0GX04N9MMY=";
|
hash = "sha256-eXukNn9Lu1hF19GEi7S7a96qktsjnmXCUp38gw+3MzY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -28,9 +27,10 @@ buildGoModule rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace llm/llama.go \
|
substituteInPlace llm/llama.go \
|
||||||
--subst-var-by llamaCppServer "${llama-cpp}/bin/llama-cpp-server"
|
--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 = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
|
|
Loading…
Reference in a new issue