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:
parent
a5dc59600e
commit
49da594fec
1 changed files with 2 additions and 2 deletions
4
fava.nix
4
fava.nix
|
|
@ -8,10 +8,10 @@ let
|
|||
# Build a Python environment with fava and all extensions.
|
||||
# This avoids duplicate package conflicts by letting Python resolve
|
||||
# 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
|
||||
let
|
||||
env = python.withPackages (ps: [ cfg.package ] ++ cfg.extensions);
|
||||
env = favaPython.pythonModule.withPackages (ps: [ favaPython ] ++ cfg.extensions);
|
||||
in env;
|
||||
|
||||
in {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue