Some checks failed
CI / check (push) Has been cancelled
- aionui 2.1.4 -> 2.1.50 - desloppify 0.9.15 -> 1.0 - ds4 -> 2026-08-05 (b030961) - freebuff 0.0.85 -> 0.0.142 (binary moved to GitHub releases) - graphify 0.7.10 -> 0.9.35 (license Apache-2.0, fix sed patterns for versioned deps) - hipengine 0.2.2 -> 0.3.0 (console script renamed to hipengine) - kubernetes-mcp-server 0.0.62 -> 0.0.66 (requires go >= 1.26.3) - mcp-gateway 2.11.0 -> 3.4.0 (requires rustc >= 1.95) - omniroute 3.8.28 -> 3.8.49 - radar 1.6.1 -> 1.9.1 (drop obsolete lockfile sed patch) - relay-free-llm -> 96e6c48, cerebras-cloud-sdk 1.67.0 -> 1.91.0 - stakpak 0.3.86 -> 0.3.88 Add nixpkgs-latest input for toolchains newer than the pinned nixpkgs.
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mcp-gateway";
|
|
version = "3.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MikkoParkkola";
|
|
repo = "mcp-gateway";
|
|
rev = "v${version}";
|
|
hash = "sha256-shn2cv463SnegamsMu6NmfylnNaFzGJLoL2H7QhETY8=";
|
|
};
|
|
|
|
cargoHash = "sha256-XuOYuYapb2l7RHQIgLDfcDPtSdMDpEgti8Ud5ssuGC8=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/systemd/user
|
|
cat > $out/lib/systemd/user/mcp-gateway.service << EOF
|
|
[Unit]
|
|
Description=MCP Gateway
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=$out/bin/mcp-gateway --config %h/.config/mcp-gateway/gateway.yaml serve
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
EOF
|
|
'';
|
|
|
|
passthru.category = "MCP Servers";
|
|
|
|
meta = with lib; {
|
|
description = "Universal Model Context Protocol gateway that sits between AI client and MCP tools/servers";
|
|
homepage = "https://github.com/MikkoParkkola/mcp-gateway";
|
|
changelog = "https://github.com/MikkoParkkola/mcp-gateway/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
sourceProvenance = with sourceTypes; [ fromSource ];
|
|
mainProgram = "mcp-gateway";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|