Building a node using Nix
Nix is a purely functional, cross-platform package manager for Linux and Unix systems. It is the package manager of choice for IOHK's internal development teams, and thus the recommended method for building a Cardano node to run on your machine.
Note: The following instructions assume you are using Linux and have curl installed. See the supported platforms page for more details about supported platforms for the Shelley Haskell testnet.
- Download and install the Nix package manager by running the following commands from a terminal:
curl https://nixos.org/nix/install > install-nix.sh ./install-nix.sh
- Follow the instructions presented as part of the Nix installation process.
- Once Nix is installed, open a new
nix-shellsession and enter the following commands, which will clone the Cardano node GitHub repository, open the node file directory, build the node itself, and then run it:
git clone https://github.com/input-output-hk/cardano-node cd cardano-node nix-build -A scripts.ff.node -o ff-node-local ./ff-node-local
Please be aware that the process of building the node may take some time, possibly several hours.
You should now have a Cardano node running on your machine, connected to the Shelley Haskell testnet.