Nix build suite for a rust + dpdk toolchain.
-
nix
Single user
nix
(which I recommend) can be installed with:sudo mkdir -m 0755 -p /nix sudo chown "$(id -u):$(id -g)" /nix sh <(curl -L https://nixos.org/nix/install) --no-daemon
-
docker
- Install
docker
via a package manager. - The user you are running the build as needs to be in the
docker
group (or be root).
- Install
-
bash
or some other POSIX shell (with `set -euo pipefail`)Whatever implementation of
sh
you have is fine so long as it supportsset -e
(exit on error)set -u
(exit on undefined variable)set -o pipefail
(exit on error in a pipeline)
You very likely already have
bash
orbusybox
which supports these flags.Unfortunately,
sh
as it exists in CI does not support these flags, so we need to specifybash
in thejustfile
¯_(ツ)_/¯