To download a tarball of the NetHack code as of the 3.6.7 release:
Step 1: download.
Click on the link below to download NetHack. Depending on your browser you may need to right-click so that the file is saved to disk and not displayed.
nethack-367-src.tgz (about 5.4M) (SHA256 sum: 98cf67df6debf9668a61745aa84c09bcab362e5d33f5b944ec5155d44d2aacb2)
NetHack 3.6.7 source release.Download this file
If you get a build error on macOS, please try this diff.
Step 2: unpack.
NetHack is shipped in a single archive created with tar and then shrunk with gzip. To unpack under Unix, the following commands should be executed in an empty directory:gzcat nethack-367-src.tgz > nethack-367-src.tar tar xf nethack-367-src.tar
Some versions of Linux do not have a gzcat command. Use the following commands instead:gzip -dc nethack-367-src.tgz > nethack-367-src.tar tar xf nethack-367-src.tarThe gzip package (containing gzip, gunzip, and gzcat) may be obtained from the Free Software Foundation. A version of tar is also available from the same site.
Step 3: build.
See the file README in the top level directory unpacked in Step 2 for build instructions for the various operating systems.