Commit graph

7 commits

Author SHA1 Message Date
Patrick Mulligan
49da594fec 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>
2026-04-01 23:59:39 -04:00
Patrick Mulligan
a5dc59600e Use python.withPackages for extensions to avoid conflicts
Instead of trying to strip fava from extension dependencies, create
a unified Python environment with python.withPackages that includes
both fava and all extensions. Python handles deduplication naturally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:57:01 -04:00
Patrick Mulligan
97f8f97ca2 Use dontCheckRuntimeDeps to skip fava dependency check
pythonRuntimeDepsCheck is not a valid attribute — the correct
attribute is dontCheckRuntimeDeps.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:52:31 -04:00
Patrick Mulligan
c1b0038d5a Skip runtime deps check for extensions with stripped fava dep
The pythonRuntimeDepsCheck fails because fava is intentionally
removed from the extension's dependencies to avoid duplicates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:27:01 -04:00
Patrick Mulligan
2c5867fcd3 Fix duplicate fava package conflict with extensions
Extensions like fava-dashboards depend on fava, causing a duplicate
package error when added to fava's own dependencies. Strip the fava
dependency from extensions since they're already running inside
fava's Python environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:24:13 -04:00
Patrick Mulligan
1c7daeef9c Add package and extensions options
- package: allows overriding the fava package
- extensions: list of Python packages to include as fava extensions
  (e.g., fava-dashboards). Automatically added to fava's Python
  environment via overridePythonAttrs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:19:54 -04:00
523019b00d Initial commit: Fava NixOS module 2026-01-15 12:59:16 +01:00