5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
35 lines
777 B
Nix
35 lines
777 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ollama";
|
|
version = "0.0.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jmorganca";
|
|
repo = "ollama";
|
|
rev = "v${version}";
|
|
hash = "sha256-idsFcjsRD1zPmG742gnYQJcgSWDA2DLMHksCFNe2GiY=";
|
|
};
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
|
|
Accelerate
|
|
MetalPerformanceShaders
|
|
MetalKit
|
|
]);
|
|
|
|
vendorHash = "sha256-IgEf/WOc1eNGCif1fViIFxbgZAd6mHBqfxcaqH/WvGg=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "Get up and running with large language models locally";
|
|
homepage = "https://github.com/jmorganca/ollama";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|