Skip to content

Commit 5cd94d3

Browse files
Update building-the-node-using-nix.md
Build the cardano-node executable. No default configuration.
1 parent 7ef8a73 commit 5cd94d3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Diff for: doc/getting-started/building-the-node-using-nix.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ To improve build speed, it is possible to set up a binary cache maintained by IO
2424
optional**):
2525
```
2626
sudo mkdir -p /etc/nix
27-
cat <<EOF | sudo tee /etc/nix/nix.conf
28-
substituters = https://cache.nixos.org https://hydra.iohk.io
29-
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
27+
cat <<EOF | sudo tee -a /etc/nix/nix.conf
28+
substituters = https://cache.nixos.org https://cache.iog.io
29+
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
3030
EOF
3131
```
3232

3333
### Building and running with nix
3434

35-
Once Nix is installed, log out and then log back in then:
35+
Once Nix is installed, log out and then log back in.
36+
After that you can build the full node package with Mainnet configuration as follows:
3637
```
3738
git clone https://github.com/input-output-hk/cardano-node
3839
cd cardano-node
@@ -44,6 +45,10 @@ or run in in one go:
4445
nix run github:input-output-hk/cardano-node#mainnet/node
4546
```
4647

48+
If you only want to build just the cardano-node executable, without the configuration bundle:
49+
```
50+
nix build .#cardano-node -o cardano-node-build
51+
```
4752
To build the cardano-cli executable, follow the steps below:
4853
```
4954
nix build .#cardano-cli -o cardano-cli-build
@@ -54,7 +59,7 @@ Or run directly, eg.:
5459
nix run .#cardano-cli -- version
5560
```
5661

57-
### Developpment environments
62+
### Development environments
5863

5964
A shell environment with pre-compiled, cached, cabal dependencies is available with:
6065
```

0 commit comments

Comments
 (0)