Skip to content

chore(nix): use hostPlatform predicates and drop unused rec - #897

Merged
LargeModGames merged 1 commit into
LargeModGames:mainfrom
arnarg:fix/flake-platform-check
Oct 19, 2026
Merged

LargeModGames merged 1 commit into
LargeModGames:mainfrom
arnarg:fix/flake-platform-check

Conversation

@arnarg

@arnarg arnarg commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I kept getting warnings when building with nix:

warning: stdenv.isLinux is deprecated, use stdenv.hostPlatform.isLinux instead
warning: stdenv.isDarwin is deprecated, use stdenv.hostPlatform.isDarwin instead

Replace the deprecated stdenv.isLinux/isDarwin with stdenv.hostPlatform.* (the modern nixpkgs form), and remove the rec from packages since nothing refers to the attribute set itself.

Testing

  • nix build .#

Additional notes


💬 Questions or want to chat with other contributors? Join the spotatui Discord.

Summary by CodeRabbit

  • Chores
    • Updated platform checks used to select dependencies for Linux and Darwin builds.

Replace the deprecated `stdenv.isLinux`/`isDarwin` with
`stdenv.hostPlatform.*` (the modern nixpkgs form), and remove the
`rec` from `packages` since nothing refers to the attribute set
itself.
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4cff401e-1716-43d2-93f5-f9327887fb2e
📥 Commits

Reviewing files that changed from the base of the PR and between c44f106 and a99ef78.

📒 Files selected for processing: 1
  • flake.nix

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The flake now selects Linux and Darwin dependencies through stdenv.hostPlatform properties. The packages attribute set is no longer recursive.

Changes: Flake configuration

Layer / File(s) Summary
Platform selection and package declaration
flake.nix
Dependency conditions now check stdenv.hostPlatform.isLinux and stdenv.hostPlatform.isDarwin. The selected dependencies are unchanged. The packages attribute set is no longer declared recursive.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to a99ef

The platform dependency selection is preserved, and removing recursion does not break package references. No actionable merge risk remains beyond normal checks.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title uses the allowed conventional-commit prefix chore(nix):. It concisely and accurately describes both changes: using host platform predicates and removing the unused rec.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
✨ Simplify code
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 8fcfeee into LargeModGames:main Oct 19, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants