mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "github-mcp-server";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "github";
|
|
repo = "github-mcp-server";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-I7Y2vZdQllT8wVttf+axwvBF7Cv4gYM4vxw7qKEmhog=";
|
|
};
|
|
|
|
vendorHash = "sha256-DeojCgMBwVclvoiEs462FoxIf3700XUjXvPbvRZE3CI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${finalAttrs.version}"
|
|
"-X=main.commit=${finalAttrs.src.rev}"
|
|
"-X=main.date=1970-01-01T00:00:00Z"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
changelog = "https://github.com/github/github-mcp-server/releases/tag/v${finalAttrs.version}";
|
|
description = "GitHub's official MCP Server";
|
|
homepage = "https://github.com/github/github-mcp-server";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "github-mcp-server";
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
})
|