diff options
Diffstat (limited to 'pkgs/by-name/em/emcee/package.nix')
| -rw-r--r-- | pkgs/by-name/em/emcee/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/em/emcee/package.nix b/pkgs/by-name/em/emcee/package.nix new file mode 100644 index 000000000000..835409bb6a5f --- /dev/null +++ b/pkgs/by-name/em/emcee/package.nix @@ -0,0 +1,51 @@ +{ + lib, + fetchFromGitHub, + buildGoModule, + versionCheckHook, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "emcee"; + version = "0.4.5"; + + src = fetchFromGitHub { + owner = "loopwork-ai"; + repo = "emcee"; + tag = "v${finalAttrs.version}"; + hash = "sha256-qiH9Om1ChuMpU3CFQkOdJj1uITSI7hojRtXkRF9GSC0="; + }; + + vendorHash = "sha256-TU6Z06b+ZkiaK2ArNKIhHMwBludThpSo4RLZO/sirK4="; + + ldflags = [ + "-X main.version=${finalAttrs.version}" + ]; + + __darwinAllowLocalNetworking = true; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Connect agents to APIs"; + longDescription = '' + emcee is a tool that provides a Model Context Protocol (MCP) server + for any web application with an OpenAPI specification. + You can use emcee to connect Claude Desktop + and other apps to external tools and data services, similar to ChatGPT plugins. + ''; + homepage = "https://github.com/loopwork-ai/emcee"; + changelog = "https://github.com/loopwork-ai/emcee/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ genga898 ]; + mainProgram = "emcee"; + }; +}) |
