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

main: Added nix shell script to make building the binaries easy on… #1220

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

Conversation

corynthian
Copy link

NixOS.

Motivation

The Makefile is currently specific to Ubuntu. This change adds a NixOS script which pulls in all the deps required to build the codebase.

Test Plan

Run nix-shell in the root on NixOS then run:

cargo build -p diem-node -p tower -p backup-cli -p ol -p txs -p onboard --release

If running for the first time run rustup update prior to the cargo build command.

Related PRs

None?

@corynthian
Copy link
Author

Just tried it on a new host, for some reason had to run rustup install 1.52.1 from the rust-toolchain after rustup update.

@corynthian corynthian changed the title libra: Added nix shell script to make building the binaries easy on… main: Added nix shell script to make building the binaries easy on… Jan 16, 2023
@0o-de-lally
Copy link
Collaborator

Super helpful. If you don't need it in the root of the project, I would move it to ol/util where we have some .sh helpers.

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