The build tool requires Cabal, patchelf, and utility nhm-tool which is shipped with package ngx-export-distribution.
$ make
$ sudo make install
With ghc older than 9.0.1, build with
$ make LINKRTS=-lHSrts_thr-ghc$(ghc --numeric-version)
By default, package ngx-export-tools-extra gets installed from Hackage. To build it locally, augment stanza packages inside cabal.project according to the commentary attached to it.