librepods icon indicating copy to clipboard operation
librepods copied to clipboard

feat(nix): add comprehensive Nix flake for linux-rust

Open doprz opened this issue 1 month ago • 2 comments

Features:

  • [x] Nix Flake Configuration: Complete flake setup supporting multiple architectures
    • [x] crane
    • [x] flake-parts
    • [x] flake-compat
    • [x] treefmt-nix
      • [x] nixfmt-rfc-style
  • [x] Development Shell: Pre-configured dev environment
  • [x] Multiple Entry Points: Support for nix develop, nix run, and nix build

doprz avatar Dec 13 '25 00:12 doprz

Notes:

  • Merging this into #241
  • This PR works however as of e2d17b8bae0c, linux-rust errors:
thread '<unnamed>' (1319932) panicked at src/main.rs:67:63:
ERROR librepods::ui::window] UI message channel closed

This means that while cargo will continue to print to stderr, the nix run command will exit due to this.

doprz avatar Dec 13 '25 00:12 doprz

Also went ahead and fixed some lint and formatting warnings/errors to clean up this PR. No need to squash commits for this PR to keep nix and rust-specific changes separate.

doprz avatar Dec 13 '25 03:12 doprz

btw, the UI message channel closed might be because the deserialization of saved devices failing, try removing the ~/.local/share/librepods folder.

kavishdevar avatar Dec 14 '25 04:12 kavishdevar

oh TIL rebase and merge adds me as the author

kavishdevar avatar Dec 14 '25 04:12 kavishdevar

oh TIL rebase and merge adds me as the author

It keeps me as the author but adds you as the committer.

Thank you for merging the PR! Looking forwards to future changes and development on librepods!

doprz avatar Dec 14 '25 05:12 doprz