Skip to content
Nix expressions for building tezos-client
Nix Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildkite
.github
.reuse
LICENSES
nix
scripts
.crossref-verifier.yaml
Makefile
README.md
default.nix
packageDeb.nix
packageRpm.nix
release.nix

README.md

Tezos packaging

Build status

This repo provides various form of distribution for tezos-related executables (unfortunately, only tezos-client for now, see this issue).

tezos-client is CLI tool used for interaction with Tezos blockchain. This repo contains nix expression for building staticically linked tezos-client binaries that can be used with remote tezos nodes without using babylonnet.sh or mainnet.sh scripts.

Build Instructions

Statically built binary

Run one of the following commands:

nix-build -A tezos-client-mainnet -o tezos-client
nix-build -A tezos-client-babylonnet -o tezos-client

Or use Makefile:

make binary #build tezos-client-babylonnet
make binary-mainnet #build tezos-client-mainnet

To build mainnet or babylonnet versions of tezos-client executable

Ubuntu .deb package

Run one of the following commands:

nix-build -A mainnet-deb-package -o tezos-client-package --arg timestamp $(date +"%Y%m%d%H%M")
nix-build -A babylonnet-deb-package -o tezos-client-package --arg timestamp $(date +"%Y%m%d%H%M")

Or use Makefile:

make deb #build deb package with tezos-client-babylonnet
make deb-mainnet #build deb package with tezos-client-mainnet

To build .deb package with mainnet or babylonnet tezos-client executable. Once you install such package the command tezos-client-mainnet or tezos-client-babylonnet will be available.

Fedora .rpm package

Run one of the following commands:

nix-build -A mainnet-rpm-package -o tezos-client-package --arg timestamp $(date +"%Y%m%d%H%M")
nix-build -A babylonnet-rpm-package -o tezos-client-package --arg timestamp $(date +"%Y%m%d%H%M")

Or use Makefile:

make rpm #build rpm package with tezos-client-babylonnet
make rpm-mainnet #build rpm package with tezos-client-mainnet

To build .rpm package with mainnet or babylonnet tezos-client executable. Once you install such package the command tezos-client-mainnet or tezos-client-babylonnet will be available.

Obtain binary or packages from github release

If you don't want to build these files from scratch, you can download assets from github release. Go to the latest release and download desired assets.

Ubuntu (Debian based distros) usage

Install .deb package

Build or download .deb file from the CI and double-click on it or run:

sudo apt install <path to deb file>

Use PPA with tezos-client

Also if you are using Ubuntu you can use PPA in order to install tezos-client. In order to do that run the following commands:

sudo add-apt-repository ppa:serokell/tezos && sudo apt-get update
sudo apt-get install tezos-client-mainnet
sudo apt-get install tezos-client-babylonnet

Fedora (Red Hat) usage

Install .rpm package

Build or download .rpm file from the CI and double-click on it or run:

sudo yum localinstall <path to the rpm file>

Use copr package with tezos-client

Also if you are using Fedora you can use Copr in order to install tezos-client. In order to do that run the following commands:

# use dnf
sudo dnf copr enable @Serokell/Tezos
sudo dnf install tezos-client-mainnet
sudo dnf install tezos-client-babylonnet

# or use yum
sudo yum copr enable @Serokell/Tezos
sudo yum install tezos-client-mainnet
sudo yum install tezos-client-babylonnet

Other Linux distros usage

Build static tezos-client binary or download it from the CI. Make it executable:

chmod +x tezos-client

Run ./tezos-client or add it to your PATH to be able to run it anywhere.

tezos-client usage

Run tezos-client [global options] command [command options].

Run tezos-client man to get more information.

For Contributors

Please see CONTRIBUTING.md for more information.

About Serokell

This repository is maintained with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.

We love open source software! See our other projects or hire us to design, develop and grow your idea!

You can’t perform that action at this time.