Running nix-build in this directory will build document.tex. If document.tex has additional build requirements, add them to default.nix. The document may be continuously built by running nix run -c make continuous.
nix-build
document.tex
default.nix
nix run -c make continuous