fix(flake): Make the flake actually run - #252
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #252 +/- ##
==========================================
- Coverage 80.87% 80.86% -0.01%
==========================================
Files 504 504
Lines 72717 72717
Branches 10973 10973
==========================================
- Hits 58807 58806 -1
- Misses 10621 10622 +1
Partials 3289 3289 see 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
c9cf3df to
40ddcc0
Compare
In order to make the Nix flake work for Synapse development: - Bump flake.lock - Bump devenv - Bump Rust to 1.89 - Bump Perl
40ddcc0 to
ee3f538
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ee3f538. Configure here.
| # * ensures a directory containing two additional homeserver config files exists; | ||
| # one to configure using the development environment's PostgreSQL as the | ||
| # database backend and another for enabling Redis support. | ||
| process.before = '' |
There was a problem hiding this comment.
Before hook skipped by native manager
High Severity
Issue: process.manager.before does not run under devenv 2.0.6's default native process manager, so devenv up skips homeserver config generation and Synapse cannot start.
Fix: Use a devenv task that runs before processes, or set process.manager.implementation = "process-compose".
Reviewed by Cursor Bugbot for commit ee3f538. Configure here.


In order to make the Nix flake work for Synapse development:
I also removed the built-in prompt. I have my own prompt, which I much prefer.
Note
Low Risk
Changes affect only local Nix/devenv development setup, not production Synapse runtime or application code.
Overview
Updates the Synapse Nix flake so
nix develop/devenv upwork again with current tooling.devenv is bumped from v0.6.3 to v2.0.6, with a full
flake.lockrefresh (nixpkgs, rust-overlay, crate2nix, git-hooks, and related inputs). Synapse startup hooks now useprocess.manager.beforeinstead ofprocess.before, matching devenv 2’s process manager API.The dev shell pins Rust stable 1.89.0 (was 1.82.0) and switches SyTest’s Perl module path from
perl538Packagestoperl5Packages. Built-in Starship prompt integration is removed (starship.enabledeleted).Reviewed by Cursor Bugbot for commit ee3f538. Bugbot is set up for automated code reviews on this repo. Configure here.