Skip to content

community/nim: various packaging improvements

Ryan Walklin requested to merge tokyovigilante/aports:nim-update into master

community/nim: add documentation, link compiler sources, fix stdlib location and debug tool packaging

This patch adds four changes:

  1. Builds and adds the compiler documentation, language manual and standard library documentation to the -doc subpackage.

  2. Corrects the location of the nim standard library to $nimdir/lib as per https://github.com/nim-lang/Nim/pull/24460 (accepted upstream).

  3. Relocates the tools in tools/debug to the -dbg package

  4. Adds a symlink to the compiler sources at $nimdir/compiler. The Nimble package manager requires these sources to compile when built separately from the compiler, and other distributions package these with the compiler.

The overall intent is to allow easier packaging of other tools (in particular the nimble package manager and the nim LSP language server) but the opportunity is taken to improve alignment with the upstream packaging guidance (https://nim-lang.org/docs/packaging.html) where possible.

Merge request reports

Loading