mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
gollama: init at 1.27.17 (#355405)
This commit is contained in:
commit
11a53d9dcc
42
pkgs/by-name/go/gollama/package.nix
Normal file
42
pkgs/by-name/go/gollama/package.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildGoModule,
|
||||||
|
versionCheckHook,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "gollama";
|
||||||
|
version = "1.27.17";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sammcj";
|
||||||
|
repo = "gollama";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-/KemOJwVHdb2BJnV53EVvbuE+0s3WOj4kzcox8hRZ6w=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-MbadjPW9Oq3lRVa+Qcq4GXaZnBL0n6qLh5I2hJ0XhaY=";
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
ldFlags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeInputChecks = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
versionCheckProgramArg = [ "-v" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Go manage your Ollama models";
|
||||||
|
homepage = "https://github.com/sammcj/gollama";
|
||||||
|
changelog = "https://github.com/sammcj/gollama/releases/tag/v${version}";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ genga898 ];
|
||||||
|
mainProgram = "gollama";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user