36 lines
804 B
Nix
36 lines
804 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "annas-mcp";
|
|
version = "0.1.0-unstable-2026-06-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iosifache";
|
|
repo = "annas-mcp";
|
|
rev = "c095963ad5d10d33da3c614495246b6ec7f680d4";
|
|
hash = lib.fakeHash;
|
|
};
|
|
|
|
vendorHash = lib.fakeHash;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
# The MCP server mode is invoked with "mcp" subcommand
|
|
postInstall = ''
|
|
wrapProgram $out/bin/annas-mcp \
|
|
--add-flags "mcp"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "MCP server and CLI tool for searching and downloading documents from Anna's Archive";
|
|
homepage = "https://github.com/iosifache/annas-mcp";
|
|
license = licenses.mit;
|
|
mainProgram = "annas-mcp";
|
|
platforms = platforms.linux;
|
|
};
|
|
} |