@@ -24,15 +24,16 @@ To improve build speed, it is possible to set up a binary cache maintained by IO
24
24
optional** ):
25
25
```
26
26
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=
30
30
EOF
31
31
```
32
32
33
33
### Building and running with nix
34
34
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:
36
37
```
37
38
git clone https://github.com/input-output-hk/cardano-node
38
39
cd cardano-node
@@ -44,6 +45,10 @@ or run in in one go:
44
45
nix run github:input-output-hk/cardano-node#mainnet/node
45
46
```
46
47
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
+ ```
47
52
To build the cardano-cli executable, follow the steps below:
48
53
```
49
54
nix build .#cardano-cli -o cardano-cli-build
@@ -54,7 +59,7 @@ Or run directly, eg.:
54
59
nix run .#cardano-cli -- version
55
60
```
56
61
57
- ### Developpment environments
62
+ ### Development environments
58
63
59
64
A shell environment with pre-compiled, cached, cabal dependencies is available with:
60
65
```
0 commit comments