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 #3

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

Add Nix flake #3

wants to merge 1 commit into from

Conversation

aumetra
Copy link
Contributor

@aumetra aumetra commented Nov 4, 2023

This PR adds a Nix flake to the repository with the following functionality:

  • nix build builds a release build of the binary using the latest (minimal) stable rustc
  • nix develop opens a Nix devshell with the latest (full) stable rustc

Cargo.lock has to be committed to the repository for Nix to be able to ensure the reproducibility of the binary
(since it's checked into Git -> same Git revision, same Cargo lockfile, same flake file, same flake lock file -> same binary)

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