fix: mcp version mismatch python

This commit is contained in:
2026-11-13 15:36:16 +01:00
parent 3edfafc45e
commit ad8198fbc2
2 changed files with 38 additions and 9 deletions
+12
View File
@@ -18,6 +18,18 @@
vivaldi = prev.vivaldi.override {
commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
};
# m3ta-home's microsoft-graph-mcp-server.nix is written against
# nixos-unstable, where python3Packages.mcp is 2.x and the 1.x line lives
# on as `mcp_1`. nixos-26.05 has no `mcp_1` because its `mcp` still IS
# 1.x, so alias it. Self-disables once nixpkgs ships a real `mcp_1`.
pythonPackagesExtensions =
prev.pythonPackagesExtensions
++ [
(_pyFinal: pyPrev:
if pyPrev ? mcp_1
then {}
else {mcp_1 = pyPrev.mcp;})
];
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });