Skip to content

FeedEcho v1.5.2 — Nix Flake & Module Fixes

Latest

Choose a tag to compare

@jcrabapple jcrabapple released this 09 Aug 01:38

FeedEcho v1.5.2 — Nix Flake & Module Fixes

Fixes 12 issues found in a review of the v1.5.1 Nix support.

Critical fixes

  • package.nix: removed hatchling from callPackage args (was undefined at top-level pkgs, would fail with "undefined variable"); now references python.pkgs.hatchling internally
  • package.nix: added passthru.python so the module can derive the correct site-packages path without hardcoding python3.12
  • flake.nix: removed deprecated nixosModule (singular) export
  • flake.nix: added devShells output (nix develop now works)
  • flake.nix: added checks output (nix build .#checks.<system>.tests runs the suite)
  • flake.nix: switched to genAttrs instead of manual builtins.listToAttrs
  • flake.nix: flake-built package is now injected into the module via pkgs.feedecho-flake-pkg, so the module and flake package are no longer disconnected
  • module.nix: site-packages path derived from cfg.package.python.libPrefix instead of hardcoded python3.12
  • module.nix: accepts flake-injected package with callPackage fallback for non-flake users
  • module.nix: removed redundant ReadWritePaths (StateDirectory handles it)
  • module.nix: changed dataDir type from path to str

Other fixes

  • Removed non-existent favicon.svg from pyproject artifacts (favicon is served by a route handler, not a file)
  • Fixed nix/README.md: removed non-existent nix build .#feedecho.check command
  • Rewrote non-flake example to actually wire the module and override the package
  • Added package option to config table, hash prefetch instructions, and StateDirectory/dataDir notes

Note

Still not nix build-tested locally (no Nix on this machine). The fetchFromGitHub hash in nix/package.nix is lib.fakeHash — replace after first build.