add: annas-mcp package (Go, fakeHash placeholders)
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 20s
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 20s
This commit is contained in:
@@ -2,28 +2,35 @@
|
|||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
makeWrapper,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "annas-mcp";
|
pname = "annas-mcp";
|
||||||
version = "0.0.5";
|
version = "0.1.0-unstable-2026-06-26";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "iosifache";
|
owner = "iosifache";
|
||||||
repo = "annas-mcp";
|
repo = "annas-mcp";
|
||||||
rev = "v${version}";
|
rev = "c095963ad5d10d33da3c614495246b6ec7f680d4";
|
||||||
hash = "sha256-XicM7tU5jD8B8n7JJDQ/84koBiLb8XF4+WBQ4LCUoRU=";
|
hash = lib.fakeHash;
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-2NdG5p2XfrhVgi388dRDBUSGwg6ybnzfn9495TWNGsA=";
|
vendorHash = lib.fakeHash;
|
||||||
|
|
||||||
subPackages = [ "cmd/annas-mcp" ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
# The MCP server mode is invoked with "mcp" subcommand
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/annas-mcp \
|
||||||
|
--add-flags "mcp"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MCP server and CLI for searching and downloading documents from Anna's Archive";
|
description = "MCP server and CLI tool for searching and downloading documents from Anna's Archive";
|
||||||
homepage = "https://github.com/iosifache/annas-mcp";
|
homepage = "https://github.com/iosifache/annas-mcp";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
mainProgram = "annas-mcp";
|
mainProgram = "annas-mcp";
|
||||||
platforms = platforms.all;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user