...
# update package manage cache:
apt-get update
# install dependencies to build iroha (more than in official documentation are required):
apt-get -y --no-install-recommends install \
build-essential ninja-build \
git ca-certificates tar curl unzip cmake \
pkg-config zip python3 python-is-python3 autoconf
# now we can clone iroha 1 from official repository (I need only last commit of branch with tag 1.5.0main)
git clone https://github.com/hyperledger/iroha.git --depth=1
cd iroha
# build all dependencies for Iroha 1:
./vcpkg/build_iroha_deps.sh $PWD/vcpkg-build
# prepare configuration to build iroha 1 with ninja, not necessarily options are disabled (smart contracts, tests):
cmake -B build -DCMAKE_TOOLCHAIN_FILE=$PWD/vcpkg-build/scripts/buildsystems/vcpkg.cmake . -DCMAKE_BUILD_TYPE=RELEASE -GNinja -DUSE_BURROW=OFF -DUSE_URSA=OFF -DTESTING=OFF -DPACKAGE_DEB=OFF
# building program which works like blockchain node with ninja-build:
cmake --build ./build --target irohad
# you can check if the program was sucessfully build (the command needs more arguments to work):
./build/bin/irohad
...