packaging.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. =============
  2. Packaging Nim
  3. =============
  4. Supported architectures
  5. -----------------------
  6. Nim runs on a wide variety of platforms. Support on amd64 and i386 is tested regularly, while less popular platforms are tested by the community.
  7. - amd64
  8. - arm64 (aka aarch64)
  9. - armel
  10. - armhf
  11. - i386
  12. - m68k
  13. - mips64el
  14. - mipsel
  15. - powerpc
  16. - ppc64
  17. - ppc64el (aka ppc64le)
  18. - riscv64
  19. The following platforms are seldomly tested:
  20. - alpha
  21. - hppa
  22. - ia64
  23. - mips
  24. - s390x
  25. - sparc64
  26. Packaging for Linux
  27. -------------------
  28. See https://github.com/nim-lang/Nim/labels/Installation for installation-related bugs.
  29. Build Nim from the released tarball at https://nim-lang.org/install_unix.html
  30. It is different from the GitHub sources as it contains Nimble, C sources & other tools.
  31. The Debian package ships bash and ksh completion and manpages that can be reused.
  32. Hints on the build process:
  33. ::
  34. # build from C sources and then using koch
  35. ./build.sh --os $os_type --cpu $cpu_arch
  36. ./bin/nim c koch
  37. ./koch boot -d:release
  38. # optionally generate docs into doc/html
  39. ./koch docs
  40. ./koch tools -d:release
  41. # extract files to be really installed
  42. ./install.sh <tempdir>
  43. # also include the tools
  44. for fn in nimble nimsuggest nimgrep; do cp ./bin/$fn <tempdir>/nim/bin/; done
  45. What to install:
  46. - The expected stdlib location is /usr/lib/nim
  47. - Global configuration files under /etc/nim
  48. - Optionally: manpages, documentation, shell completion
  49. - When installing documentation, .idx files are not required
  50. - The "compiler" directory contains compiler sources and should not be part of the compiler binary package