BSD Ports

lang/nim 2.2.12_1 FreeBSD

Nim programming language

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
943322cf87
License
MIT
Categories
lang
Package size
7171.4 KiB, 51016.8 KiB installed

Description

Nim (formerly known as "Nimrod") is a statically typed, imperative programming language that tries to give the programmer ultimate power without compromises on runtime efficiency. This means it focuses on compile-time mechanisms in all their various forms.

Beneath a nice infix/indentation based syntax with a powerful (AST based, hygienic) macro system lies a semantic model that supports a soft realtime GC on thread local heaps. Asynchronous message passing is used between threads, so no "stop the world" mechanism is necessary. An unsafe shared memory heap is also provided for the increased efficiency that results from that model.

In the other systems

SystemPortVersion
FreeBSDlang/nim2.2.12_1
OpenBSDlang/nim2.2.12
NetBSDlang/nim2.0.4
DragonFlylang/nim2.2.2
HardenedBSDlang/nim2.2.12
GhostBSDlang/nim2.2.12

Install

Binary package:

pkg install nim

From the ports tree:

cd /usr/ports/lang/nim/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	nim>0:lang/nim

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.2.122.2.12_11.6.102.2.4_12.2.12_1
FreeBSD:14:quarterly2.2.122.2.12n/a2.2.42.2.12
FreeBSD:15:latest2.2.122.2.12_1n/a2.2.4_12.2.4_1
FreeBSD:15:quarterly2.2.122.2.12n/an/an/a
FreeBSD:16:latest2.2.122.2.12_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Library 1

Test 1

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

Options name: lang_nim

OptionDefaultDescription
DOCSoffBuild and/or install documentation
TOOLSonBuild and install nim tools, not including nimble nor nimfind
USES
compiler:c11 cpe tar:xz
Service scripts
none

Files

pkg-plist 973
  • nim/bin/nim
  • nim/bin/nimgrep
  • nim/bin/nimpretty
  • nim/bin/nimsuggest
  • nim/bin/testament
  • nim/config/nim.cfg
  • nim/config/nimdoc.cfg
  • nim/config/nimdoc.tex.cfg
  • nim/doc/advopt.txt
  • nim/doc/apis.md
  • nim/doc/astspec.txt
  • nim/doc/backends.md
  • nim/doc/basicopt.txt
  • nim/doc/contributing.md
  • nim/doc/destructors.md
  • nim/doc/docgen.md
  • nim/doc/docgen_sample.nim
  • nim/doc/docs.md
  • nim/doc/docstyle.md
  • nim/doc/drnim.md
  • nim/doc/effects.txt
  • nim/doc/estp.md
  • nim/doc/filelist.txt
  • nim/doc/filters.md
  • nim/doc/grammar.txt
  • nim/doc/hcr.md
  • nim/doc/html/algorithm.html
  • nim/doc/html/apis.html
  • nim/doc/html/appdirs.html
  • nim/doc/html/asciitables.html
  • nim/doc/html/assertions.html
  • nim/doc/html/async.html
  • nim/doc/html/asyncdispatch.html
  • nim/doc/html/asyncfile.html
  • nim/doc/html/asyncfutures.html
  • nim/doc/html/asynchttpserver.html
  • nim/doc/html/asyncjs.html
  • nim/doc/html/asyncmacro.html
  • nim/doc/html/asyncnet.html
  • nim/doc/html/asyncstreams.html
  • nim/doc/html/atomics.html
  • nim/doc/html/backends.html
  • nim/doc/html/base64.html
  • nim/doc/html/bitops.html
  • nim/doc/html/bitops_utils.html
  • nim/doc/html/browsers.html
  • nim/doc/html/cgi.html
  • nim/doc/html/chains.html
  • nim/doc/html/cmdline.html
  • nim/doc/html/colors.html
  • nim/doc/html/compiler/aliasanalysis.html
  • nim/doc/html/compiler/aliases.html
  • nim/doc/html/compiler/ast.html
  • nim/doc/html/compiler/astalgo.html
  • nim/doc/html/compiler/astmsgs.html
  • nim/doc/html/compiler/astyaml.html
  • nim/doc/html/compiler/bitsets.html
  • nim/doc/html/compiler/btrees.html
  • nim/doc/html/compiler/ccgutils.html
  • nim/doc/html/compiler/cgen.html
  • nim/doc/html/compiler/cgendata.html
  • nim/doc/html/compiler/cgmeth.html
  • nim/doc/html/compiler/closureiters.html
  • nim/doc/html/compiler/cmdlinehelper.html
  • nim/doc/html/compiler/commands.html
  • nim/doc/html/compiler/concepts.html
  • nim/doc/html/compiler/condsyms.html
  • nim/doc/html/compiler/depends.html
  • nim/doc/html/compiler/dfa.html
  • nim/doc/html/compiler/docgen.html
  • nim/doc/html/compiler/docgen2.html
  • nim/doc/html/compiler/dochack.js
  • nim/doc/html/compiler/enumtostr.html
  • nim/doc/html/compiler/errorhandling.html
  • nim/doc/html/compiler/evaltempl.html
  • nim/doc/html/compiler/expanddefaults.html
  • nim/doc/html/compiler/extccomp.html
  • nim/doc/html/compiler/filter_tmpl.html
  • nim/doc/html/compiler/filters.html
  • nim/doc/html/compiler/gorgeimpl.html
  • nim/doc/html/compiler/guards.html
  • nim/doc/html/compiler/ic/bitabs.html
  • nim/doc/html/compiler/ic/cbackend.html
  • nim/doc/html/compiler/ic/dce.html
  • nim/doc/html/compiler/ic/ic.html
  • nim/doc/html/compiler/ic/iclineinfos.html
  • nim/doc/html/compiler/ic/integrity.html
  • nim/doc/html/compiler/ic/navigator.html
  • nim/doc/html/compiler/ic/packed_ast.html
  • nim/doc/html/compiler/ic/replayer.html
  • nim/doc/html/compiler/ic/rodfiles.html
  • nim/doc/html/compiler/idents.html
  • nim/doc/html/compiler/importer.html
  • nim/doc/html/compiler/index.html
  • nim/doc/html/compiler/injectdestructors.html
  • nim/doc/html/compiler/int128.html
  • nim/doc/html/compiler/isolation_check.html
  • nim/doc/html/compiler/jsgen.html
  • nim/doc/html/compiler/lambdalifting.html
  • nim/doc/html/compiler/layeredtable.html

The first 100 are listed.

distinfo 2
FileSizeSHA256
nim-2.2.12.tar.xz1.025994e+072639a06a5ea7a7fcf57df1e7e1ef4d1b2bee58c7ac9bd00dbd2aa5bea1e5a56a
e97b0bb541ee182c4f38709e2dbbaee03be12138.patch1619487082111e65a2d9da145134ff9da7d54c258a2ee96e26792a8f71671a4dc4c7
Master sites 1
  • https://nim-lang.org/download/

Commit history 2

DateCommitCreditsLog message
943322cf87 Piotr Kubaj lang/nim: fix on powerpc64
countProcessors() reads the 4-byte hw.ncpu into an 8-byte int, which puts it in the high word on big-endian, so any nim c without --parallelBuild tried to size its build state for 2^38 CPUs and got OOM-killed. That is also why DOCS was turned off on powerpc64 in 2020, so enable it again. Also take the upstream fix for the shr constant folding on big-endian and apply it to the pre-generated bootstrap compiler too.
faa402de5d Neal Nelson lang/nim: Update to 2.2.12
Changes: https://nim-lang.org/blog/2026/09/08/nim-2212.html PR: 298340