Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions for-node-hosts/running-nodes/cronosd-build-with-nix.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,25 @@ Below are listed the different possible parameters
* **Network Type**
* `mainnet` (default)
* `testnet`
* **DB Backend**
* `rocksdb` (default)
* `goleveldb`
* **Build Type**
* normal nix package (default)
* re-distributable bundle
* re-distributable tarball, the tarball of the above bundle.

### Creating a reproducible build

The package name is constructed by joining the above three properties with a separator `-`, omitting the default values, for example:
The package name is constructed by joining the above properties with a separator `-`, omitting the default values, for example:

* `cronosd:` defaults to the `mainnet` `rocksdb` nix package.
* `cronosd-tarball:` `mainnet` `rocksdb` re-distributable tarball.
* `cronosd-goleveldb-tarball:` `mainnet` `goleveldb` re-distributable tarball.
* `cronosd-testnet-goleveldb-tarball:` `testnet` `goleveldb` re-distributable tarball.
* `cronosd:` defaults to the `mainnet` nix package.
* `cronosd-bundle:` `mainnet` re-distributable bundle.
* `cronosd-tarball:` `mainnet` re-distributable tarball.
* `cronosd-testnet:` `testnet` nix package.
* `cronosd-testnet-tarball:` `testnet` re-distributable tarball.

The nix flake url is: `github:crypto-org-chain/cronos/$TAG_NAME#$PACKAGE_NAME`, \
replace the `$TAG_NAME` and `$PACKAGE_NAME` to the one you needed, for example: \
\
The full command to build a `v0.8.1` `rocksdb` `mainnet` re-distributable tarball is:
The full command to build a `v0.8.1` `mainnet` re-distributable tarball is:

```shell
nix build github:crypto-org-chain/cronos/v0.8.1#cronosd-tarball
Expand Down