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: add nix flake.nix #7050

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

Conversation

RobWalt
Copy link

@RobWalt RobWalt commented Feb 2, 2025

Connections

  • the existing shell.nix file

Description

There are currently two major ways of using nix: With and without flakes. Currently the repo only hosts a shell.nix file which supports the non-flake way of running nix stuff like development shells. This PR adds a flake.nix and a modularized directory nix where people can find the implementation of the flake-devshell.

  • Compared to the shell.nix file, this development shell only includes the necessary dependency to get the wgpu examples running. People are free to extend this minimal devshell and tailor it to their own needs.
  • The flake approach also supports locking dependencies which helps with the reproducibility of everything.

Testing

  • I entered the devShell on my machine and ran the hallmark example successfully. ✅

@RobWalt RobWalt requested a review from a team as a code owner February 2, 2025 14:41
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