Compare commits
34 Commits
7c5ea9129d
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f4b66744ad | |||
| b17a484806 | |||
| 55344ed9ef | |||
| 9c01a07231 | |||
| 88a3976b5e | |||
| fdfdc63883 | |||
| 56e8414d1b | |||
| e614c3802b | |||
| 21da64300d | |||
| e26984fd03 | |||
| 555765f4c4 | |||
| 17dc826d7b | |||
| d39928e0e3 | |||
| c22f65865a | |||
| 8f38158c61 | |||
| febfeb61f4 | |||
| bf3fb5a3a3 | |||
| adad2860f7 | |||
| b027fd26cd | |||
| 8d9d05c308 | |||
| 7369b10b6f | |||
| 87e2fa8483 | |||
| a08806da9a | |||
| b73ef032a4 | |||
| af28a83009 | |||
| ef7969273d | |||
| 50e7ffca92 | |||
| 572c9d6481 | |||
| 5afdbe50fb | |||
| 5b30010e3d | |||
| 256a9b025c | |||
| ad923c5777 | |||
| d4c0be5034 | |||
| 384467a43b |
+13
-54
@@ -1,63 +1,22 @@
|
||||
name: CI
|
||||
name: NixOS Configuration CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
branches: [ main, master ]
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
flake-check:
|
||||
name: Flake Check
|
||||
runs-on: ubuntu-latest
|
||||
check:
|
||||
name: Nix Flake Check
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v26
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
accept-flake-config = true
|
||||
|
||||
- name: Validate flake
|
||||
run: nix flake check --print-build-logs
|
||||
|
||||
build-individual:
|
||||
name: Build Individual Packages
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
package:
|
||||
- academic-search-mcp-server
|
||||
- duckduckgo-mcp-server
|
||||
- kindly-web-search-mcp-server
|
||||
- manim-mcp-server
|
||||
- pdf-reader-mcp
|
||||
- rust-research-mcp
|
||||
- zotero-mcp
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v26
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
accept-flake-config = true
|
||||
|
||||
- name: Build ${{ matrix.package }}
|
||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||
|
||||
- name: Test executable exists
|
||||
run: |
|
||||
if [ -e "./result/bin/${{ matrix.package }}" ]; then
|
||||
echo "✓ Executable found: ${{ matrix.package }}"
|
||||
./result/bin/${{ matrix.package }} --help || true
|
||||
else
|
||||
echo "⚠ No executable found at ./result/bin/${{ matrix.package }}"
|
||||
ls -la ./result/bin/ || echo "No bin directory"
|
||||
fi
|
||||
- name: Run nix flake check
|
||||
run: nix flake check --show-trace
|
||||
|
||||
Generated
+3
-37
@@ -1,30 +1,12 @@
|
||||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1770181073,
|
||||
"narHash": "sha256-ksTL7P9QC1WfZasNlaAdLOzqD8x5EPyods69YBqxSfk=",
|
||||
"lastModified": 1780243769,
|
||||
"narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "bf922a59c5c9998a6584645f7d0de689512e444c",
|
||||
"rev": "331800de5053fcebacf6813adb5db9c9dca22a0c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,24 +18,8 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -12,52 +12,59 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self, nixpkgs, ... }:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
in
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Overlay that adds all MCP packages to nixpkgs
|
||||
overlays.default = import ./overlays/default.nix;
|
||||
}
|
||||
// flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
};
|
||||
|
||||
# Import all MCP packages
|
||||
mcpPackages = import ./packages { inherit pkgs; };
|
||||
|
||||
# List of all MCP server packages (for devShell)
|
||||
allMcpServers = builtins.attrValues mcpPackages ++ [ pkgs.mcp-nixos ];
|
||||
in
|
||||
{
|
||||
# Export all packages
|
||||
packages = mcpPackages // {
|
||||
// {
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
};
|
||||
mcpPackages = import ./packages { inherit pkgs; };
|
||||
in
|
||||
mcpPackages // {
|
||||
default = pkgs.symlinkJoin {
|
||||
name = "mcp-servers";
|
||||
paths = builtins.attrValues mcpPackages;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = allMcpServers ++ [
|
||||
pkgs.git
|
||||
];
|
||||
devShells = forAllSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default ];
|
||||
};
|
||||
mcpPackages = import ./packages { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = builtins.attrValues mcpPackages ++ [ pkgs.mcp-nixos pkgs.git ];
|
||||
shellHook = ''
|
||||
export SEARXNG_BASE_URL="https://search.bueso.eu"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
shellHook = ''
|
||||
export SEARXNG_BASE_URL="https://search.bueso.eu"
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
checks.x86_64-linux = builtins.removeAttrs self.packages.x86_64-linux [ "default" ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "annas-mcp";
|
||||
version = "0.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iosifache";
|
||||
repo = "annas-mcp";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-XicM7tU5jD8B8n7JJDQ/84koBiLb8XF4+WBQ4LCUoRU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2NdG5p2XfrhVgi388dRDBUSGwg6ybnzfn9495TWNGsA=";
|
||||
|
||||
subPackages = [ "cmd/annas-mcp" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "MCP server and CLI for searching and downloading documents from Anna's Archive";
|
||||
homepage = "https://github.com/iosifache/annas-mcp";
|
||||
license = licenses.mit;
|
||||
mainProgram = "annas-mcp";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -16,7 +16,6 @@
|
||||
zotero-mcp = pkgs.callPackage ./zotero-mcp/package.nix { };
|
||||
pdf-reader-mcp = pkgs.callPackage ./pdf-reader-mcp/package.nix { };
|
||||
kindly-web-search-mcp-server = pkgs.callPackage ./kindly-web-search-mcp-server/package.nix { };
|
||||
rust-research-mcp = pkgs.callPackage ./rust-research-mcp/package.nix { };
|
||||
duckduckgo-mcp-server = pkgs.callPackage ./duckduckgo-mcp-server/package.nix { };
|
||||
n8n-mcp = pkgs.callPackage ./n8n-mcp/package.nix { };
|
||||
simple-web-search-mcp = pkgs.callPackage ./simple-web-search-mcp/package.nix { };
|
||||
@@ -24,5 +23,7 @@
|
||||
transmission-mcp = pkgs.callPackage ./transmission-mcp/package.nix { };
|
||||
sabnzbd-mcp = pkgs.callPackage ./sabnzbd-mcp/package.nix { };
|
||||
jellyfin-mcp = pkgs.callPackage ./jellyfin-mcp/package.nix { };
|
||||
nextcloud-mcp-server = pkgs.callPackage ./nextcloud-mcp-server/package.nix { };
|
||||
annas-mcp = pkgs.callPackage ./annas-mcp/package.nix { };
|
||||
# example-mcp-server = pkgs.callPackage ./example-mcp-server/package.nix { };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
fetchPypi,
|
||||
}:
|
||||
|
||||
let
|
||||
# Helper: buildPythonPackage for a wheel fetched from PyPI
|
||||
# CRITICAL: pname MUST use underscores, not hyphens, for PyPI wheel filenames
|
||||
fetchWheel = { pname, version, hash, propagatedBuildInputs ? [ ], meta ? { } }:
|
||||
python3Packages.buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "wheel";
|
||||
src = fetchPypi {
|
||||
inherit pname version hash;
|
||||
format = "wheel";
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
};
|
||||
inherit propagatedBuildInputs;
|
||||
doCheck = false;
|
||||
dontCheckRuntimeDeps = true;
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
pythonvcard4 = fetchWheel {
|
||||
pname = "pythonvcard4"; version = "0.2.0"; hash = "sha256-3OMTVd1QruU3+Ig96G8wFRDkB7wXVaaOyNUFW2T1xmA=";
|
||||
meta = with lib; { description = "vCard parsing"; homepage = "https://github.com/GNOME/python-vcard4"; license = licenses.gpl3Plus; };
|
||||
};
|
||||
prometheus-client = fetchWheel {
|
||||
pname = "prometheus_client"; version = "0.25.0"; hash = "sha256-1a7InjSabsIwgF0N+ILzgH90/WwaL6hoZOPCJ5BZ/tE=";
|
||||
meta = with lib; { description = "Prometheus client"; homepage = "https://github.com/prometheus/client_python"; license = licenses.asl20; };
|
||||
};
|
||||
python-json-logger = fetchWheel {
|
||||
pname = "python_json_logger"; version = "4.1.0"; hash = "sha256-EymUdlz3W/RFVL6apJsG7yNF0jZhqWcgJicWQ4FBtrI=";
|
||||
meta = with lib; { description = "JSON logger"; homepage = "https://github.com/nhairs/python-json-logger"; license = licenses.bsd2; };
|
||||
};
|
||||
importlib-metadata = fetchWheel {
|
||||
pname = "importlib_metadata"; version = "8.7.1"; hash = "sha256-Wh+Avx2qSJSVBx77sJXXWmNM8oqLwplYEkQGO1MXYVE=";
|
||||
propagatedBuildInputs = with python3Packages; [ zipp ];
|
||||
meta = with lib; { description = "Importlib metadata"; homepage = "https://github.com/python/importlib_metadata"; license = licenses.asl20; };
|
||||
};
|
||||
googleapis-common-protos = fetchWheel {
|
||||
pname = "googleapis_common_protos"; version = "1.75.0"; hash = "sha256-lh7WA5nEV86w7o8oWoTIcKq8nGqDK503uygbW+veQ+0=";
|
||||
propagatedBuildInputs = with python3Packages; [ protobuf ];
|
||||
meta = with lib; { description = "Common protos"; homepage = "https://github.com/googleapis/python-api-common-protos"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-api = fetchWheel {
|
||||
pname = "opentelemetry_api"; version = "1.39.1"; hash = "sha256-Lt2EY0Mqf4RD7c6QlyFpsZXn1qBVAM0p5tE4mBh8mVA=";
|
||||
propagatedBuildInputs = with python3Packages; [ deprecated ];
|
||||
meta = with lib; { description = "OpenTelemetry API"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-proto = fetchWheel {
|
||||
pname = "opentelemetry_proto"; version = "1.39.1"; hash = "sha256-Is3Hjv07N2XQnmi/vQENT8JUyYGK/QtrQjOH2d7kYAc=";
|
||||
propagatedBuildInputs = with python3Packages; [ protobuf ];
|
||||
meta = with lib; { description = "OpenTelemetry Proto"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-semantic-conventions = fetchWheel {
|
||||
pname = "opentelemetry_semantic_conventions"; version = "0.60b1"; hash = "sha256-n6jIsMEQ2iiYCSkrBZEiDTp7U8FSaiMCHpd9aFl4k/s=";
|
||||
propagatedBuildInputs = with python3Packages; [ deprecated ];
|
||||
meta = with lib; { description = "OTel semconv"; homepage = "https://github.com/open-telemetry/semantic-conventions"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-sdk = fetchWheel {
|
||||
pname = "opentelemetry_sdk"; version = "1.39.1"; hash = "sha256-TVSCxHhRPssKXZONzGE5TmRwZuDMJna+6fOvPz9F8Bw=";
|
||||
propagatedBuildInputs = with python3Packages; [ typing-extensions ];
|
||||
meta = with lib; { description = "OpenTelemetry SDK"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
|
||||
};
|
||||
x-wr-timezone = fetchWheel {
|
||||
pname = "x_wr_timezone"; version = "2.0.1"; hash = "sha256-50pTufT33vgThFXCQOZeR8Ikd4vOPAJPzW2iy+kcoDg=";
|
||||
propagatedBuildInputs = with python3Packages; [ icalendar click ];
|
||||
meta = with lib; { description = "X-WR-TIMEZONE"; homepage = "https://github.com/niccokunzmann/x-wr-timezone"; license = licenses.lgpl3Plus; };
|
||||
};
|
||||
opentelemetry-util-http = fetchWheel {
|
||||
pname = "opentelemetry_util_http"; version = "0.60b1"; hash = "sha256-ZjgbooVQyRvuFNy6iXms5ENESvHtYJImY0WWtLD68Zk=";
|
||||
meta = with lib; { description = "OTel HTTP utils"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-exporter-otlp-proto-common = fetchWheel {
|
||||
pname = "opentelemetry_exporter_otlp_proto_common"; version = "1.39.1"; hash = "sha256-CPilhi1kzDQ1EFaG0CFsE2XcVwH4aESozVZZfQx2T94=";
|
||||
meta = with lib; { description = "OTLP proto common"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-instrumentation = fetchWheel {
|
||||
pname = "opentelemetry_instrumentation"; version = "0.60b1"; hash = "sha256-BEgNuVK0j7HtAHP4IvDuJgEre+fD6sGjeTEic3x4Yy0=";
|
||||
propagatedBuildInputs = with python3Packages; [ wrapt packaging ];
|
||||
meta = with lib; { description = "OTel instrumentation"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
|
||||
};
|
||||
recurring-ical-events = fetchWheel {
|
||||
pname = "recurring_ical_events"; version = "3.8.2"; hash = "sha256-mtYF4ntPvrcO4cZiBa3jJVC+FaV87cV5YGUi8cZ6720=";
|
||||
propagatedBuildInputs = with python3Packages; [ icalendar python-dateutil ];
|
||||
meta = with lib; { description = "Recurring iCal events"; homepage = "https://github.com/niccokunzmann/python-recurring-ical-events"; license = licenses.lgpl3Plus; };
|
||||
};
|
||||
opentelemetry-exporter-otlp-proto-grpc = fetchWheel {
|
||||
pname = "opentelemetry_exporter_otlp_proto_grpc"; version = "1.39.1"; hash = "sha256-+hwTagXH6bTAn3OUacvbkn6iCzQIirHZWahJtcxYnBg=";
|
||||
propagatedBuildInputs = with python3Packages; [ grpcio deprecated ];
|
||||
meta = with lib; { description = "OTLP gRPC exporter"; homepage = "https://github.com/open-telemetry/opentelemetry-python"; license = licenses.asl20; };
|
||||
};
|
||||
qdrant-client = fetchWheel {
|
||||
pname = "qdrant_client"; version = "1.18.0"; hash = "sha256-CTqoz4pCDuOtKmiwB+E3jXmSsmAOC1PBk/wXJnT2Wc0=";
|
||||
propagatedBuildInputs = with python3Packages; [ grpcio httpx numpy portalocker protobuf pydantic urllib3 ];
|
||||
meta = with lib; { description = "Qdrant client"; homepage = "https://github.com/qdrant/qdrant-client"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-instrumentation-asgi = fetchWheel {
|
||||
pname = "opentelemetry_instrumentation_asgi"; version = "0.60b1"; hash = "sha256-1I3vLb7RApTJnPz0HrvQxBTTkKEXc6QfRy0gAA/N3CU=";
|
||||
propagatedBuildInputs = with python3Packages; [ asgiref ];
|
||||
meta = with lib; { description = "OTel ASGI"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-instrumentation-httpx = fetchWheel {
|
||||
pname = "opentelemetry_instrumentation_httpx"; version = "0.60b1"; hash = "sha256-83Y23XQq0q+D2Ja6aWAe0o2lH6TiXRq2L96JzkE+J1s=";
|
||||
propagatedBuildInputs = with python3Packages; [ httpx wrapt ];
|
||||
meta = with lib; { description = "OTel HTTPX"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
|
||||
};
|
||||
opentelemetry-instrumentation-logging = fetchWheel {
|
||||
pname = "opentelemetry_instrumentation_logging"; version = "0.60b1"; hash = "sha256-8uGMvH4d02KMgOMNJDiX/ck8W34MiuYKvSubapn4I0M=";
|
||||
meta = with lib; { description = "OTel logging"; homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib"; license = licenses.asl20; };
|
||||
};
|
||||
langchain-text-splitters = fetchWheel {
|
||||
pname = "langchain_text_splitters"; version = "1.1.2"; hash = "sha256-ot4NeZ/zGIZCn9bi4AMt8nW2DsgXwZBZp7RhgcwcLxA=";
|
||||
propagatedBuildInputs = with python3Packages; [ langchain-core ];
|
||||
meta = with lib; { description = "LangChain text splitters"; homepage = "https://github.com/langchain-ai/langchain"; license = licenses.mit; };
|
||||
};
|
||||
mistralai = fetchWheel {
|
||||
pname = "mistralai"; version = "2.4.7"; hash = "sha256-FjnL0tjxjHIqfm2Fl4PCAdUkC668MUkdJxWza8o9gK8=";
|
||||
propagatedBuildInputs = with python3Packages; [ httpx pydantic python-dateutil ];
|
||||
meta = with lib; { description = "Mistral AI API client"; homepage = "https://github.com/mistralai/client-python"; license = licenses.asl20; };
|
||||
};
|
||||
caldav = fetchWheel {
|
||||
pname = "caldav"; version = "3.2.0"; hash = "sha256-OTYfRgqWWZuOTvu91xE4Ktsbvo/CeOrEZQ8jy2FV7KU=";
|
||||
propagatedBuildInputs = with python3Packages; [ httpx icalendar python-dateutil ];
|
||||
meta = with lib; { description = "CalDAV client"; homepage = "https://github.com/python-caldav/caldav"; license = licenses.asl20; };
|
||||
};
|
||||
|
||||
in
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "nextcloud-mcp-server";
|
||||
version = "0.89.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cbcoutinho";
|
||||
repo = "nextcloud-mcp-server";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-IDTSGsHQ8cCFvgSO7pDbSSHVNV0OIjjoEN9ZfkaPAvk=";
|
||||
};
|
||||
|
||||
build-system = [ python3Packages.uv-build ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
mcp httpx pillow icalendar pydantic click pyjwt
|
||||
aiosqlite alembic authlib fastembed anthropic boto3 starlette
|
||||
jinja2 markdownify pymupdf pymupdf4llm openai dynaconf sqlalchemy
|
||||
|
||||
pythonvcard4 prometheus-client python-json-logger importlib-metadata
|
||||
googleapis-common-protos opentelemetry-api opentelemetry-proto
|
||||
opentelemetry-semantic-conventions opentelemetry-sdk
|
||||
x-wr-timezone opentelemetry-util-http opentelemetry-exporter-otlp-proto-common
|
||||
opentelemetry-instrumentation recurring-ical-events icalendar-searcher
|
||||
opentelemetry-exporter-otlp-proto-grpc qdrant-client
|
||||
opentelemetry-instrumentation-asgi opentelemetry-instrumentation-httpx
|
||||
opentelemetry-instrumentation-logging langchain-text-splitters mistralai caldav
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-quiet '"uv_build>=0.11.5,<0.12.0"' '"uv_build"' \
|
||||
--replace-quiet '" (>=1.27,<1.28)"' '""' \
|
||||
--replace-quiet '" (>=0.28.1,<0.29.0)"' '""' \
|
||||
--replace-quiet '" (>=10.3.0,<12.0.0)"' '""' \
|
||||
--replace-quiet '" (>=7.1.0,<7.2.0)"' '""' \
|
||||
--replace-quiet '" (>=3.0.1,<4.0)"' '""' \
|
||||
--replace-quiet '" (>=1.28.2,<2.0.0)"' '""' \
|
||||
--replace-quiet '" (>=2.0.0,<3.0.0)"' '""' \
|
||||
--replace-quiet '">=3.0.1,<4.0"' '""' \
|
||||
--replace-quiet '">=3.8.0,<4.0"' '""' \
|
||||
--replace-quiet '">=3.2.13,<4.0"' '""' \
|
||||
--replace-quiet '">=1.28.2"' '""' \
|
||||
--replace-quiet '">=0.21.0"' '""' \
|
||||
--replace-quiet '">=3.2.0"' '""' \
|
||||
--replace-quiet '">=0.2.0"' '""' \
|
||||
--replace-quiet '">=2.4.5"' '""'
|
||||
'';
|
||||
|
||||
# PYTHONPATH from the host environment (e.g., mautrix bridge injecting
|
||||
# Python 3.12 site-packages) causes C extension ABI mismatches on NixOS.
|
||||
# The wrapper's own sys.path has the correct closure packages, so we
|
||||
# unset the external PYTHONPATH to prevent contamination.
|
||||
makeWrapperArgs = [ "--unset" "PYTHONPATH" ];
|
||||
|
||||
dontCheckRuntimeDeps = true;
|
||||
catchConflicts = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "MCP server for Nextcloud — files, calendar, contacts, notes, deck, talk, sharing";
|
||||
homepage = "https://github.com/cbcoutinho/nextcloud-mcp-server";
|
||||
license = licenses.agpl3Only;
|
||||
mainProgram = "nextcloud-mcp-server";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user