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 support for reproducible build and develop #32

Merged
merged 8 commits into from
Aug 17, 2022

Conversation

SnO2WMaN
Copy link
Contributor

Add some files to provide a reproducible build and development environment (Rust tools, Python3, etc.) with Nix.

If Nix is installed, $ nix-build will generate binaries in result/bin/erg directly under the project, or in the same location as $ nix build if Nix Flakes is supported.

For this purpose, I've made Cargo.lock managed in git, according to https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html

If you’re building an end product, which are executable like command-line tool or an application, ... check Cargo.lock into git

@SnO2WMaN SnO2WMaN marked this pull request as ready for review August 16, 2022 21:38
@SnO2WMaN
Copy link
Contributor Author

If necessary, rustfmt can be included in the development environment, although commented out the feature because currently about 5 files are not formatted.

#5

@mtshiba mtshiba merged commit 34a2529 into erg-lang:main Aug 17, 2022
@mtshiba
Copy link
Member

mtshiba commented Aug 17, 2022

Looks good. Thank you so much!

@SnO2WMaN SnO2WMaN deleted the nix-flake branch August 17, 2022 09:23
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.

2 participants