[Framework16]Can't install ollama unstable on 24.05

Hi there !
I’m using a Framework 16 that has both AMD 780m iGPU and a AMD RX7700S dGPU module. I’m trying to install ollama from unstable (the one on stable is pretty old … but works). So I tried to :

  • add from the package ollama
  • enable the service with ollama.service.enable=true
  • install the ollama-rocm version or to enable acceleration from the service option ollama.service.acceleration=rocm

I always have errors when I try to build my conf. Here is an example with just the standard ollama package :

error: hash mismatch in fixed-output derivation '/nix/store/6di59yfbcc7p2sbg9cd4szm8rr66diyx-source.drv':
         specified: sha256-iD7LX4OstnNL2FZKObh4z9krkN0sfUUbFEZxu6OvdBs=
            got:    sha256-ctz9xh1wisG0YUxglygKHIvU9bMgMLkGqDoknb8qSAU=
error: 1 dependencies of derivation '/nix/store/hi787lr3x1m7y1nakpig5c43rbplf2dp-ollama-0.3.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nrj8rz7v837v49zgxj7imv7rfmx165lc-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/l1ghg4yzq32pkh8qay8nrx6adhxw2ws1-unit-ollama.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/28if475skacs7vglc5h38gr74cw4bziv-nixos-system-fw16-24.11pre660624.9f918d616c53.drv' failed to build

Any clue how to fix these errors ?
Thank’s for the help !

Create an issue in Nixpkgs.

This is fixed by ollama: update hash for 0.3.1 by abysssol · Pull Request #331780 · NixOS/nixpkgs · GitHub. Please wait a bit for it reaching unstable.

1 Like