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
hatchlingfromcallPackageargs (was undefined at top-levelpkgs, would fail with "undefined variable"); now referencespython.pkgs.hatchlinginternally - package.nix: added
passthru.pythonso the module can derive the correctsite-packagespath without hardcodingpython3.12 - flake.nix: removed deprecated
nixosModule(singular) export - flake.nix: added
devShellsoutput (nix developnow works) - flake.nix: added
checksoutput (nix build .#checks.<system>.testsruns the suite) - flake.nix: switched to
genAttrsinstead of manualbuiltins.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.libPrefixinstead of hardcodedpython3.12 - module.nix: accepts flake-injected package with
callPackagefallback for non-flake users - module.nix: removed redundant
ReadWritePaths(StateDirectory handles it) - module.nix: changed
dataDirtype frompathtostr
Other fixes
- Removed non-existent
favicon.svgfrom pyprojectartifacts(favicon is served by a route handler, not a file) - Fixed
nix/README.md: removed non-existentnix build .#feedecho.checkcommand - Rewrote non-flake example to actually wire the module and override the package
- Added
packageoption 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.