Fix: use pkgs.python3Packages.fava for pythonModule access

pkgs.fava (top-level) doesn't have pythonModule. Use
pkgs.python3Packages.fava which does.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-04-01 23:59:39 -04:00
parent a5dc59600e
commit 49da594fec

View file

@ -8,10 +8,10 @@ let
# Build a Python environment with fava and all extensions. # Build a Python environment with fava and all extensions.
# This avoids duplicate package conflicts by letting Python resolve # This avoids duplicate package conflicts by letting Python resolve
# shared dependencies (like fava itself) in a single environment. # shared dependencies (like fava itself) in a single environment.
python = cfg.package.pythonModule; favaPython = pkgs.python3Packages.fava;
favaWithExtensions = if cfg.extensions == [] then cfg.package else favaWithExtensions = if cfg.extensions == [] then cfg.package else
let let
env = python.withPackages (ps: [ cfg.package ] ++ cfg.extensions); env = favaPython.pythonModule.withPackages (ps: [ favaPython ] ++ cfg.extensions);
in env; in env;
in { in {