[25.05] ollama: 0.9.6 -> 0.11.4 (#432486)

This commit is contained in:
Pavol Rusnak
2025-08-10 13:33:40 +02:00
committed by GitHub

View File

@@ -18,6 +18,7 @@
cudaPackages,
cudaArches ? cudaPackages.flags.realArches or [ ],
autoAddDriverRunpath,
apple-sdk_15,
# passthru
nixosTests,
@@ -116,17 +117,16 @@ in
goBuild (finalAttrs: {
pname = "ollama";
# don't forget to invalidate all hashes each update
version = "0.9.6";
version = "0.11.4";
src = fetchFromGitHub {
owner = "ollama";
repo = "ollama";
tag = "v${finalAttrs.version}";
hash = "sha256-fVbHz/Sa3aSIYBic3lNQl5iUYo+9LHIk52vO9mx6XRE=";
fetchSubmodules = true;
hash = "sha256-joIA/rH8j+SJH5EVMr6iqKLve6bkntPQM43KCN9JTZ8=";
};
vendorHash = "sha256-oHTo8EQGfrKOwg6SRPrL23qSH+p+clBxxiXsuO1auLk=";
vendorHash = "sha256-SlaDsu001TUW+t9WRp7LqxUSQSGDF1Lqu9M1bgILoX4=";
env =
lib.optionalAttrs enableRocm {
@@ -153,7 +153,9 @@ goBuild (finalAttrs: {
];
buildInputs =
lib.optionals enableRocm (rocmLibs ++ [ libdrm ]) ++ lib.optionals enableCuda cudaLibs;
lib.optionals enableRocm (rocmLibs ++ [ libdrm ])
++ lib.optionals enableCuda cudaLibs
++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_15 ];
# replace inaccurate version number with actual release version
postPatch = ''