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

Add Nix flake #1974

Closed
wants to merge 1 commit into from
Closed

Add Nix flake #1974

wants to merge 1 commit into from

Conversation

adisbladis
Copy link

@adisbladis adisbladis commented Oct 21, 2023

This is another take on #1026 that aims to minimally implement a Nix development environment.

Notable differences are:

  • Uses pyproject.nix for auto-packaging of the environment

    • Not only is mach-nix unmaintained, but it's also very heavy weight.

    • Uses nixpkgs Python packages
      Which means better binary cache performance than mach-nix offers.

  • No direnv additions
    I use direnv myself but expect users to be able to echo 'use flake' > .envrc if they want to use direnv.

  • Uses zephyr sources from a flake input
    This should make maintenance simpler as there is no manual updating required.

flake.nix Outdated Show resolved Hide resolved
This is another take on zmkfirmware#1026 that aims to minimally implement a Nix development environment.

Notable differences are:

- Uses `pyproject.nix` for auto-packaging of the environment
  - Mach-nix is unmaintained
    Not only is it unmaintained but extremely heavy weight.

  - Uses nixpkgs Python packages
    Which means better binary cache performance than mach-nix offers.

- No direnv additions
I use direnv myself but expect users to be able to `echo 'use flake' > .envrc` if they want to use direnv.

- Uses zephyr sources from a flake input
This should make maintenance simpler as there is no manual updating required.
@kilipan
Copy link

kilipan commented Jun 18, 2024

Would love for a nix flake to be added, too!

@adisbladis adisbladis closed this Nov 11, 2024
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.

3 participants