ollamaPackages: fix install path so that ollama gives it a nicer name
This commit is contained in:
@@ -79,12 +79,13 @@ stdenv.mkDerivation {
|
|||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/$manifestDir $(dirname $out/$blobDir)
|
mkdir -p $out/$manifestDir $(dirname $out/$blobDir)
|
||||||
cp manifest $out/$manifestDir/latest
|
cp manifest $out/$manifestDir/$variant
|
||||||
cp -R blobs $out/$blobDir
|
cp -R blobs $out/$blobDir
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
env.blobDir = "share/ollama/models/blobs";
|
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user