mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
gollama: init at 1.27.17
gollama: update repo and add versionCheckHook
This commit is contained in:
parent
5763214382
commit
33aec5e694
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