Debian, Ubuntu and derivatives:
sudo apt install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
After installing Rust and other required dependencies, git clone the alacritty project repository.
git clone https://github.com/alacritty/alacritty.git
cd alacritty
Next, run the following command to start the build. This command should be submitted under the cloned alacritty directory.
cargo build --release