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

nix: Enabled tooling with cargo2nix #41

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jpds
Copy link
Contributor

@jpds jpds commented Mar 17, 2024

I did this as part of the testing for the LTO change and just making it easier to do builds across my laptop and test server.

Basically, one just needs to install Nix on their machine: https://zero-to-nix.com/start/install

...and then instead of developers having to bootstrap their own Rust (in this case)/C++/Python/JavaScript toolchains on their systems, they just run:

nix build

...the tool then fetches the required (and pinned) toolchain and performs the build of the project.

Debug builds can be done with:

nix develop # spawns a temporary shell session with the required tooling added
cargo build
cargo test

Just a thought as people mentioned that developer speed was important.

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.

None yet

1 participant