Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refine nix integration with development #10

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

ulic-youthlic
Copy link
Contributor

as the title: refine the integration with nix and direnv.

  • add shell.nix and default.nix to ensure non-flake-enabled nix instance can use flake's devShells and packages via flake-compat.
  • add watch_file directive in .envrc for watch the change of rust-toolchain.toml and flake.lock, for making sure direnv activate the newest development environment.
  • use use flake || use nix in .envrc to fallback to nix-shell when flake disabled.

@pk5ls20 pk5ls20 merged commit 8071dd8 into LagrangeDev:lagrange Feb 6, 2025
6 checks passed
@ulic-youthlic ulic-youthlic deleted the fix_direnv_integration branch February 6, 2025 16:16
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