Skip to content

added flake.nix and direnv dev environment for nix users also made a #12

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

conneroisu
Copy link

This pull request introduces a Nix-based development environment for the CCManager project. The changes include the addition of a flake.nix file to define the environment and modifications to .envrc to integrate with nix-direnv. These updates aim to streamline development workflows, ensure reproducibility, and provide cross-platform compatibility.

Development Environment Setup:

  • Added a flake.nix file to define the CCManager development environment, including dependencies, build configurations, and shell setup. This includes support for both Linux and macOS-specific build tools, environment variables, and convenience aliases for common commands like npm run dev, npm run build, and npm test.
  • Configured a development shell with tools like Node.js, TypeScript, Prettier, ESLint, and Git, as well as native build tools for handling Node.js native modules.

Integration with nix-direnv:

  • Updated .envrc to check for and source the appropriate version of nix-direnv (v3.0.6) and enable the use of flakes. This ensures seamless integration with the Nix development environment.

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.

1 participant