{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, }: rustPlatform.buildRustPackage rec { pname = "rust-research-mcp"; version = "0.6.7-unstable"; src = fetchFromGitHub { owner = "Ladvien"; repo = "research_hub_mcp"; rev = "3335c118da9e7a9e9e7f2e608989fbe35557f3c5"; hash = "sha256-KkIVeFQ8hEL82ZtC+Tie+8T/eZcEoWyq5cRVgdinQEc="; }; cargoHash = "sha256-zwhQ2ksFbedeuzTaJI+9t9of6es7RJa6JwRHQRznqBY="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; doCheck = false; # The build.rs uses vergen to embed git info, which fails without a git repo. # Set environment variables to satisfy vergen during build. env = { VERGEN_GIT_BRANCH = "main"; VERGEN_GIT_COMMIT_DATE = "2025-09-25"; VERGEN_GIT_COMMIT_TIMESTAMP = "2025-09-25T19:35:10Z"; VERGEN_GIT_SHA = "3335c118da9e7a9e9e7f2e608989fbe35557f3c5"; VERGEN_BUILD_DATE = "2025-09-25"; VERGEN_BUILD_TIMESTAMP = "2025-09-25T19:35:10Z"; }; meta = with lib; { description = "MCP server for accumulating and organizing academic knowledge"; homepage = "https://github.com/Ladvien/research_hub_mcp"; license = licenses.gpl3Only; mainProgram = pname; platforms = platforms.all; }; }