You need to have nix package manager installed.
nix developYou may need to pass additional options to nix in case you do not have corresponding features set in nix.conf.
nix develop --extra-experimental-features nix-command --extra-experimental-features flakescmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build