Add Nix flake definition for reproducible builds#265
Open
josephvoss wants to merge 1 commit intoDeusData:mainfrom
Open
Add Nix flake definition for reproducible builds#265josephvoss wants to merge 1 commit intoDeusData:mainfrom
josephvoss wants to merge 1 commit intoDeusData:mainfrom
Conversation
Adds `flake.nix` to define how this package should be built on systems running [nix][nix-link]. Also commit the `flake.lock` file to pin the specific dependencies at build time. By default support aarch64 and x86_64 for macos and linux. Run the Make command directly because `cc` on Nix systems is a wrapper file and not a binary directly, so the `file` check in `scripts/build.sh` fails to identify the host architecture correctly. Include lib2git as an optional dev shell dependency since it's detected by `pkg-config` in the build script to link to `lib2git` if it exists at build time. [nix-link]: https://nixos.org/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
flake.nixto define how this package should be built on systems running nix. Also commit theflake.lockfile to pin the specific dependencies at build time.By default support aarch64 and x86_64 for macos and linux. Run the Make command directly because
ccon Nix systems is a wrapper file and not a binary directly, so thefilecheck inscripts/build.shfails to identify the host architecture correctly.Include lib2git as an optional dev shell dependency since it's detected by
pkg-configin the build script to link tolib2gitif it exists at build time.