Commit Graph

210 Commits

Author SHA1 Message Date
R. Ryantm
4055e99dd4 ollama-cpu: 0.32.11 -> 0.32.13 2026-08-15 00:37:22 +00:00
Sandro Jäckel
d1645f33cf ollama: 0.32.7 -> 0.32.11
Diff: https://github.com/ollama/ollama/compare/v0.32.7...v0.32.11

Changelog: https://github.com/ollama/ollama/releases/tag/v0.32.11
2026-08-14 17:50:58 +02:00
Sandro Jäckel
6d9be5f06f ollama: check that llama-cpp is matching 2026-08-14 17:50:57 +02:00
Sandro Jäckel
1e3b4d12bc ollama: add updateScript to passthru 2026-08-14 17:50:57 +02:00
R. Ryantm
be5df4340f ollama: 0.32.6 -> 0.32.7 2026-08-10 13:18:43 +00:00
R. Ryantm
38774f8d5d ollama-cpu: 0.32.5 -> 0.32.6 2026-08-06 03:39:16 +00:00
R. Ryantm
b9d058a279 ollama: 0.32.4 -> 0.32.5 2026-08-01 16:40:06 +00:00
R. Ryantm
1d311a8662 ollama-cpu: 0.32.3 -> 0.32.4 2026-07-27 05:52:59 +00:00
Pavol Rusnak
ffc8c1c9eb ollama: 0.32.1 -> 0.32.3 2026-07-23 18:44:49 +02:00
Pavol Rusnak
97087f83d5 ollama: add update.sh which also updates llamaCppSrc 2026-07-23 18:44:48 +02:00
Sandro
09a68f4130 ollama: mark cross as broken, fix cmake invocation (#399738) 2026-07-18 15:04:51 +00:00
Sandro Jäckel
ff792c649a ollama: 0.32.0 -> 0.32.1
Diff: https://github.com/ollama/ollama/compare/v0.32.0...v0.32.1

Changelog: https://github.com/ollama/ollama/releases/tag/v0.32.1
2026-07-17 22:45:03 +02:00
R. Ryantm
4d01e35160 ollama: 0.31.2 -> 0.32.0 2026-07-14 10:04:54 +00:00
R. Ryantm
1fd39e9a2f ollama-cpu: 0.31.1 -> 0.31.2 2026-07-09 04:46:43 +00:00
Stephane
33223e67c4 ollama: 0.30.7 -> 0.31.1
Assisted-by: github-copilot-cli, gpt-5.3-codex
2026-07-02 21:19:33 +02:00
FliegendeWurst
036cf95347 ollama: mark cross as broken, fix cmake invocation 2026-06-30 18:19:25 +02:00
Gaetan Lepage
3fecd68e9d cudaPackages_13_3.cccl: init at 13.3.3.3.1 2026-06-21 16:56:43 +00:00
R. Ryantm
4c1a84d7fc ollama-cpu: 0.30.6 -> 0.30.7 2026-06-11 07:40:48 +00:00
R. Ryantm
f2cf50e275 ollama: 0.30.5 -> 0.30.6 2026-06-08 19:12:14 +00:00
Pavol Rusnak
a23fd78461 ollama: fix darwin build by disabling MLX backends (#529079) 2026-06-07 22:59:16 +00:00
Aaron Jheng
b195b40fb0 ollama: fix darwin build by disabling MLX backends
MLX backends require xcrun metal/metalib which are unavailable in the
Nix sandbox. Pass -DOLLAMA_MLX_BACKENDS="" to cmake to skip the
Metal toolchain check. Core Metal/llama.cpp backend is unaffected.
2026-06-07 17:15:55 +08:00
phibkro
1e9315fd0c ollama: use tag field for llama.cpp pin + drop redundant version comment
Addresses two review comments — different reviewers, same direction:

* @SuperSandro2000 on the original PR #528150 (line 118 of
  pkgs/by-name/ol/ollama/package.nix): "Why are we not using tag if
  there is a tag?". Drop the SHA + `# tag b9509` shape that required
  reviewers to cross-check the SHA matched the inline comment.

* @prusnak on this follow-up #528374: "I think we should use `tag`
  instead of `rev`." `fetchFromGitHub`'s dedicated `tag` field is
  preferred over `rev = "<tag-string>"` — same git object, same
  tarball, same hash, but signals intent at the schema level and
  renders into the store path nicely.

* Line 113 prose comment (the other half of SuperSandro's review on
  #528150): "We should not repeat the version in this comment and
  have to update that, too, on every update." Drop `currently b9509`
  from the prose; the remaining text explains the mechanism (tracks
  upstream's `LLAMA_CPP_VERSION` file, pre-staged because
  FetchContent can't network in the sandbox) without naming a
  specific version that would drift on every bump.

Pure source-readability change. `nix-build -A ollama --no-out-link`
on x86_64-linux produces the same store path as master, confirming
the tag resolves to the same git object → same tarball → same hash
→ no rebuild impact.

The same lines exist on `release-26.05` via the original backport
#528272; happy to mirror this fix there if you apply the
`backport release-26.05` label.

Assisted-by: Claude <noreply@anthropic.com>
2026-06-05 15:28:21 +02:00
phibkro
bba51cb247 ollama: fix darwin build for 0.30.5
Two darwin-only issues surfaced when building on x86_64-darwin:

1. The conditional postPatch removed three test files
   (ml/backend/ggml/ggml_test.go, ml/nn/pooling/pooling_test.go,
   model/models/nemotronh/model_omni_test.go) that no longer exist
   in v0.30.5 upstream. The `rm` failed with "No such file or directory"
   and aborted patchPhase. Tests in the new paths
   (e.g. fs/ggml/ggml_test.go) pass on darwin without removal — verified
   via the test phase in this commit's local build.

2. preFixup ran `patchelf --shrink-rpath` unconditionally; patchelf is
   ELF-only and darwin's Mach-O dylibs don't carry the build-dir RPATH
   problem in the first place. Gated on stdenv.hostPlatform.isLinux.

Verified: nix-build -A ollama on x86_64-darwin (macOS 15.6.1, Sequoia)
lands /nix/store/.../ollama-0.30.5; checkPhase green for all listed
packages including x/models/gemma4; ollama --version reports 0.30.5.

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 01:19:37 +02:00
phibkro
0e1071782c ollama: 0.30.4 -> 0.30.5
Upstream patch release; notably fixes a divide-by-zero crash in
gemma3:12b. Bumps the vendored llama.cpp pin b9493 -> b9509 to match
upstream's LLAMA_CPP_VERSION. Verified ollama-cuda + ollama-vulkan
build on x86_64-linux.

https://github.com/ollama/ollama/releases/tag/v0.30.5

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 00:00:00 +02:00
phibkro
6432d78bff ollama: fix vulkan variant — wire SPIRV-Headers across the ExternalProject boundary
Two layers were missing for ollama-vulkan after the 0.30.x bump's switch to
per-accelerator runners via ExternalProject_Add:

1. spirv-headers wasn't in nativeBuildInputs, so the parent cmake configure
   never even saw `SPIRV-HeadersConfig.cmake`. Add it (header-only — native
   is the right slot).

2. The runner sub-builds (`ollama-llama-server-vulkan` et al.) are launched
   by `cmake/local.cmake`'s `ExternalProject_Add`, whose child cmake process
   inherits env vars but not the parent's `-D` flags. Even after fixing
   (1), the child's `find_package(SPIRV-Headers REQUIRED)` at
   `ggml-vulkan/CMakeLists.txt:14` couldn't see the config, and once that
   was worked around with `CMAKE_PREFIX_PATH` as env, the compile then
   failed with `fatal error: spirv/unified1/spirv.hpp` — because
   upstream's `target_link_libraries(ggml-vulkan PRIVATE Vulkan::Vulkan)`
   notably does NOT link `SPIRV-Headers::SPIRV-Headers`, so the interface
   include path the cmake config exports never flows into the compile
   commands. Force the include via `NIX_CFLAGS_COMPILE` rather than
   patching upstream's CMakeLists across llama.cpp pins.

Verified: `ollama-vulkan` builds end-to-end; `$out/lib/ollama/vulkan/libggml-vulkan.so`
is present (not a silent CPU fallback like the cuda variant suffered in
the first 0.30 attempt).

🤖 Assisted by Claude
2026-06-04 11:24:14 +02:00
phibkro
63e0d2d52d ollama: 0.24.0 -> 0.30.4
Notable upstream build changes folded into this bump:

* llama.cpp moved from in-tree vendoring to CMake FetchContent, pinned
  via the `LLAMA_CPP_VERSION` file at the repo root (b9493 here →
  llama.cpp commit a731805c). Pre-stage it as `fetchFromGitHub` and
  apply Ollama's compat patch in `postPatch` — neither
  `cmake/local.cmake` nor `llama/server/CMakeLists.txt` auto-applies
  the patch when the source is overridden via
  `FETCHCONTENT_SOURCE_DIR_LLAMA_CPP` (the parent's `ExternalProject_Add`
  passes `OLLAMA_LLAMA_CPP_SKIP_COMPAT_PATCH=ON` to the child build).
  The `apply-patch.cmake` script is idempotent.

* Since 0.30, `cmake/local.cmake` splits the llama.cpp build into
  per-runner sub-projects gated by `OLLAMA_LLAMA_BACKENDS`. Without
  setting it, only the CPU runner is built — `ollama-cuda` /
  `ollama-rocm` / `ollama-vulkan` would all silently fall back to CPU
  at runtime, with `libggml-{cuda,hip,vulkan}.so` absent from
  `$out/lib/ollama`. Map the package's `acceleration` value to the
  cmake backend name the elseif chain accepts:
    cuda   → cuda_v${cudaMajor}               (cuda_v12 / cuda_v13)
    rocm   → rocm_v${rocmMajor}_${rocmMinor}  (rocm_v7_1 / rocm_v7_2)
    vulkan → vulkan

* `cmd/launch/*_test.go` are integration tests for user-facing CLI
  launchers (claude, qwen, cline, codex, kimi, droid, openclaw,
  hermes, …) that install the target binary via npm and exec it on
  PATH. Both prerequisites are unavailable in the nix sandbox, so the
  launch subpackage's tests can't pass here. Drop them — same
  precedent as the existing darwin Metal test removals.

* The llama.cpp sub-build is driven by ExternalProject_Add and does
  not inherit the parent's `CMAKE_SKIP_BUILD_RPATH` setting, so its
  `.so` payloads end up with build-dir entries in RPATH. Strip with
  `patchelf --shrink-rpath --allowed-rpath-prefixes /nix/store` in
  preFixup; `$ORIGIN` is preserved unconditionally (non-absolute
  entries always allowed) so peer-lib lookup in `$out/lib/ollama`
  still works.

Drive-by cleanup: deadnix + statix passes (overrideModAttrs unused
lambda args → `_:_`, `inherit (rocmPackages) stdenv;` /
`inherit (vulkan-tools) stdenv;` for `buildGoModule.override`, drop
unused `coreutils` input — the old launch-test substitutions that
needed coreutils are dropped along with the tests).

Release notes:
  https://github.com/ollama/ollama/releases/tag/v0.30.4
  https://github.com/ollama/ollama/releases/tag/v0.30.0

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 08:15:02 +02:00
Sandro Jäckel
4539a5b821 ollama: 0.23.4 -> 0.24.0
Diff: https://github.com/ollama/ollama/compare/v0.23.4...v0.24.0

Changelog: https://github.com/ollama/ollama/releases/tag/v0.24.0
2026-05-22 00:17:03 +02:00
Eman Resu
c4e70c2a59 various: remove nested lists in build inputs 2026-05-16 22:39:19 -04:00
Sandro
e3f72fe8fc ollama: 0.23.1 -> 0.23.4 (#519987) 2026-05-15 21:22:40 +00:00
Marcin Serwin
5e75181628 maintainers: drop dit7ya
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-05-15 20:24:01 +02:00
R. Ryantm
837e3b677d ollama: 0.23.1 -> 0.23.4 2026-05-13 23:49:38 +00:00
Michael Roitzsch
dd2c634af7 ollama: fix build on darwin
remove test that fails due to sandboxing
2026-05-08 15:35:28 +02:00
Sandro Jäckel
5ca3d032e1 ollama: 0.23.0 -> 0.23.1
Diff: https://github.com/ollama/ollama/compare/v0.23.0...v0.23.1

Changelog: https://github.com/ollama/ollama/releases/tag/v0.23.1
2026-05-06 00:48:05 +02:00
R. Ryantm
c52b8e2040 ollama: 0.22.1 -> 0.23.0 2026-05-05 05:19:19 +00:00
Marius DAVID
cdc74d044f ollama: 0.21.1 -> 0.22.1 2026-05-01 21:49:26 +02:00
Stephane
cd973234aa ollama: 0.21.0 -> 0.21.1 2026-04-23 11:32:29 +02:00
Stephane
4c4a4ee68f ollama: 0.20.7 -> 0.21.0 2026-04-18 14:28:48 +02:00
Maciej Krüger
f8a36a40ed ollama: 0.20.6 -> 0.20.7 2026-04-14 09:36:49 +02:00
Maciej Krüger
d7f2dfe6bf ollama: 0.20.5 -> 0.20.6
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 14:54:08 +02:00
Stephane
c35908815e ollama: 0.20.4 -> 0.20.5 2026-04-10 23:13:53 +02:00
Stephane
82195b062b ollama: 0.20.3 -> 0.20.4 2026-04-08 23:09:36 +02:00
Stephane
75b7c82b90 ollama: 0.20.2 -> 0.20.3 2026-04-07 13:27:06 +02:00
Stephane
1266aa38aa ollama: 0.20.0 -> 0.20.2 2026-04-04 15:21:47 +02:00
R. Ryantm
e70d442a86 ollama-cpu: 0.19.0 -> 0.20.0 2026-04-03 02:31:24 +00:00
Stephane
e5d6a6c33b ollama: 0.18.2 -> 0.19.0 2026-03-30 21:21:18 +02:00
Gaetan Lepage
08ae964b5b ollama: ignore LICENSE collision in cudaToolkit 2026-03-23 17:57:32 +00:00
Harinn
06cf9baf04 ollama: 0.18.0 -> 0.18.2 2026-03-21 12:42:36 +07:00
R. Ryantm
9b5d7c6b1c ollama-cpu: 0.17.7 -> 0.18.0 2026-03-14 08:36:47 +00:00
Dan Xin
7bf7517ff0 ollama: 0.17.6 -> 0.17.7
Diff: https://github.com/ollama/ollama/compare/v0.17.6...v0.17.7

Changelog: https://github.com/ollama/ollama/releases/tag/v0.17.7
2026-03-07 17:16:09 +08:00
Pavol Rusnak
2e790cd686 ollama-cpu: 0.17.4 -> 0.17.6 (#497006) 2026-03-05 22:31:34 +00:00