diff --git a/pkgs/by-name/ollamaPackages/mkOllamaModel.nix b/pkgs/by-name/ollamaPackages/mkOllamaModel.nix index bc15b75d9..5428ddd74 100644 --- a/pkgs/by-name/ollamaPackages/mkOllamaModel.nix +++ b/pkgs/by-name/ollamaPackages/mkOllamaModel.nix @@ -79,12 +79,13 @@ stdenv.mkDerivation { runHook preInstall mkdir -p $out/$manifestDir $(dirname $out/$blobDir) - cp manifest $out/$manifestDir/latest + cp manifest $out/$manifestDir/$variant cp -R blobs $out/$blobDir runHook postInstall ''; env.blobDir = "share/ollama/models/blobs"; - env.manifestDir = "share/ollama/models/manifests/registry.ollama.ai/library/${modelName}-${variant}"; + env.manifestDir = "share/ollama/models/manifests/registry.ollama.ai/library/${modelName}"; + env.variant = variant; }