Skip to content

feat: add nix files for creating a default development environment#9130

Closed
drupol wants to merge 1 commit into
meshtastic:developfrom
drupol:push-qzvsonvokpsx
Closed

feat: add nix files for creating a default development environment#9130
drupol wants to merge 1 commit into
meshtastic:developfrom
drupol:push-qzvsonvokpsx

Conversation

@drupol

@drupol drupol commented Dec 31, 2025

Copy link
Copy Markdown

This works with both Nix legacy (nix-shell) and the experimental feature "flake".

To spawn a development shell, you have two available options:

  1. Using Nix legacy, run nix-shell
  2. Using Nix with Flakes, run nix --extra-experimental-features "flakes nix-command" flake develop.

Of course, the flakes feature is experimental since years and considered as stable. However, there is absolutely no will from upstream to make it stable as of today, this is why I would be wary to only provide Nix with Flakes only

🙏 Thank you for sending in a pull request, here's some tips to get started!

❌ (Please delete all these tips and replace them with your text) ❌

  • Before starting on some new big chunk of code, it it is optional but highly recommended to open an issue first
    to say "Hey, I think this idea X should be implemented and I'm starting work on it. My general plan is Y, any feedback
    is appreciated." This will allow other devs to potentially save you time by not accidentially duplicating work etc...
  • Please do not check in files that don't have real changes
  • Please do not reformat lines that you didn't have to change the code on
  • We recommend using the Visual Studio Code editor along with the 'Trunk Check' extension (In beta for windows, WSL2 for the linux version),
    because it automatically follows our indentation rules and its auto reformatting will not cause spurious changes to lines.
  • If your PR fixes a bug, mention "fixes #bugnum" somewhere in your pull request description.
  • If your other co-developers have comments on your PR please tweak as needed.
  • Please also enable "Allow edits by maintainers".
  • Please do not submit untested code.
  • If you do not have the affected hardware to test your code changes adequately against regressions, please indicate this, so that contributors and commnunity members can help test your changes.
  • If your PR gets accepted you can request a "Contributor" role in the Meshtastic Discord

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other (please specify below)

@github-actions

Copy link
Copy Markdown
Contributor

@drupol, Welcome to Meshtastic!

Thanks for opening your first pull request. We really appreciate it.

We discuss work as a team in discord, please join us in the #firmware channel.
There's a big backlog of patches at the moment. If you have time,
please help us with some code review and testing of other PRs!

Welcome to the team 😄

This works with both Nix legacy (nix-shell) and the experimental feature "flake".

To spawn a development shell, you have two available options:

1. Using Nix legacy, run `nix-shell`
2. Using Nix with Flakes, run `nix --extra-experimental-features "flakes nix-command" flake develop`.
@vidplace7 vidplace7 added the enhancement New feature or request label Dec 31, 2025
@drupol drupol closed this Dec 31, 2025
@drupol drupol deleted the push-qzvsonvokpsx branch December 31, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request first-contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants