Building Cardano Node with nix

The Nix Package Manager can be installed on most Linux distributions by downloading and running the installation script:

curl -L >
chmod +x

and following the directions.

IOHK Binary Cache

To improve build speed, it is possible to set up a binary cache maintained by IOHK (this is optional):

sudo mkdir -p /etc/nix
cat <<EOF | sudo tee /etc/nix/nix.conf
substituters =
trusted-public-keys =

Once Nix is installed, log out and then log back in then:

git clone
cd cardano-node
nix-build -A scripts.mainnet.node -o mainnet-node-local