You can install bamtocov from BioConda, if you have conda installed:
conda install -c conda-forge -c bioconda bamtocov
nimble build