summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2019-01-23 10:12:46 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-01-23 11:12:46 +0100
commitc3229dc1c3af3c1766bba79d013e0f90b02d19d5 (patch)
treef9b01d290b8900f3bb4eb1d21f7657963f819e3a /doc
parent9c0e5c4c074ac9d4db7b215ba202ad9e09f18254 (diff)
downloadNim-c3229dc1c3af3c1766bba79d013e0f90b02d19d5.tar.gz
Add packaging guide #5182 (#10384)
Diffstat (limited to 'doc')
-rw-r--r--doc/packaging.rst68
1 files changed, 68 insertions, 0 deletions
diff --git a/doc/packaging.rst b/doc/packaging.rst
new file mode 100644
index 000000000..f67cb1cce
--- /dev/null
+++ b/doc/packaging.rst
@@ -0,0 +1,68 @@
+Packaging Nim
+=============
+
+
+Supported architectures
+-----------------------
+
+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.
+
+- amd64
+- arm64 (aka aarch64)
+- armel
+- armhf
+- i386
+- m68k
+- mips64el
+- mipsel
+- powerpc
+- ppc64
+- ppc64el (aka ppc64le)
+- riscv64
+
+The following platforms are seldomly tested:
+
+- alpha
+- hppa
+- ia64
+- mips
+- s390x
+- sparc64
+
+Packaging for Linux
+-------------------
+
+See https://github.com/nim-lang/Nim/labels/Installation for installation-related bugs.
+
+Build Nim from the released tarball at https://nim-lang.org/install_unix.html
+It is different from the GitHub sources as it contains Nimble, C sources & other tools.
+
+The Debian package ships bash and ksh completion and manpages that can be reused.
+
+Hints on the build process:
+
+::
+
+   # build from C sources and then using koch
+   ./build.sh --os $os_type --cpu $cpu_arch
+   ./bin/nim c koch
+   ./koch boot -d:release
+
+   # optionally generate docs into doc/html
+   ./koch docs
+
+   ./koch tools -d:release
+
+   # extract files to be really installed
+   ./install.sh <tempdir>
+
+   # also include the tools
+   for fn in nimble nimsuggest nimgrep; do cp ./bin/$fn <tempdir>/nim/bin/; done
+
+What to install:
+
+- The expected stdlib location is /usr/lib/nim
+- Global configuration files under /etc/nim
+- Optionally: manpages, documentation, shell completion
+- When installing documentation, .idx files are not required
+- The "compiler" directory contains compiler sources and should not be part of the compiler binary package