From ea57fc5faaee764b22989f2e27084238c9107ac4 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 13 Oct 2024 08:16:09 +0000 Subject: [PATCH] ollamaPackages: fix install path so that ollama gives it a nicer name --- pkgs/by-name/ollamaPackages/mkOllamaModel.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }