Merge pull request #246151 from dit7ya/ollama

ollama: init at 0.0.12
This commit is contained in:
Pol Dellaiera 2023-08-02 22:54:47 +02:00 committed by GitHub
commit 57727aceb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
, darwin
}:
buildGoModule rec {
pname = "ollama";
version = "0.0.12";
src = fetchFromGitHub {
owner = "jmorganca";
repo = "ollama";
rev = "v${version}";
hash = "sha256-TEifqWVgZjrQcq9eDjfRgUff9vdsO3Fx2hZZJVJZLsU=";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk_11_0.frameworks; [
Accelerate
MetalPerformanceShaders
MetalKit
]);
vendorHash = "sha256-KtpEqGXLpwH0NXFjb0F/SUBxP7BLEiEg3NouC0ZQOPs=";
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 ];
};
}

View file

@ -789,6 +789,8 @@ with pkgs;
oletools = with python3.pkgs; toPythonApplication oletools;
ollama = callPackage ../tools/misc/ollama { };
ots = callPackage ../tools/security/ots { };
credential-detector = callPackage ../tools/security/credential-detector { };