macOS
brew install nimlocal Homebrew formula metadata
安装
brew install nimlocal Homebrew formula metadata
sudo apk add nimAlpine Linux edge package indexes · nim · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#nimnixpkgs package indexes · nim · 来源: raw.githubusercontent.com
sudo pacman -S nimArch Linux sync databases · nim · 来源: geo.mirror.pkgbuild.com
sudo apt install nimUbuntu 24.04 LTS package indexes · nim · 来源: archive.ubuntu.com
sudo zypper install nimopenSUSE Tumbleweed package metadata · nim · 来源: download.opensuse.org
choco install nimChocolatey community package catalog · nim · 来源: community.chocolatey.org
scoop install main/nimScoop official bucket manifest trees · bucket/nim.json · 来源: api.github.com
概览
Statically typed compiled systems programming language
历史
Nim is a statically typed compiled systems programming language that tries to combine Python-like readability, compile-time metaprogramming, native performance, and practical interop through C, C++, Objective-C, and JavaScript backends. The Homebrew package installs the compiler plus the everyday toolchain pieces such as Nimble, nimgrep, nimpretty, nimsuggest, and testament.
The project was known as Nimrod before the official rename to Nim in version 0.10.2 on December 29, 2014. That release also renamed the package manager from Babel to Nimble and described Nimble as a functional cross-platform installer for Nim libraries and applications backed by a GitHub-hosted package repository.
Nim 1.0 was released on September 23, 2019. The release announcement framed it as the beginning of a stable base and a long-term-supported 1.0 branch, with a commitment that code compiling under Nim 1.0 should continue to compile under stable Nim 1.x releases, subject to documented exceptions. The same announcement said more than 500 people had contributed and that Nimble packages had passed the 1,000-package milestone in August 2019.
Nim 2.0 was released on August 1, 2023, with major work around ARC/ORC memory management and toolchain changes. Nim 2.2.10 followed on April 24, 2026 as the fifth patch release for stable Nim 2.2, with 76 commits of bug fixes and improvements.
Nim's adoption has been steady rather than explosive: a self-hosted compiler, a package registry through Nimble, official forums and docs, and enough package-manager presence to make it easy to install on Unix-like systems and Windows package managers. It attracts users who want native binaries, low-level control, macros, and C/C++ interop without writing C++ directly.
On 2026-07-01, Homebrew listed Nim 2.2.10 with 16,428 installs over 365 days and 16,088 installs-on-request. That is a small-language signal, but it is substantial for a non-mainstream systems language and reflects use by people building local compilers, tools, and experiments.
The core workflow is still compact: write `.nim`, run `nim c myproject.nim` for a debug build, use `nim c -d:release myproject.nim` for optimized release builds, and rely on generated C or C++ plus the host compiler for final code generation. The compiler guide documents cross-compilation, C/C++ compiler selection, nimcache behavior, Android/iOS cases, DLL/shared-library generation, and backend-specific switches.
Package nerds care about Nimble because it makes Nim feel like a small language distribution rather than just a compiler. Nimble installs libraries and applications by package name or repository URL, while tools such as nimpretty, nimsuggest, nimgrep, and testament support formatting, editor integration, search, and test running.
Nim is interesting in package databases because it straddles language runtime, compiler, package manager, transpiler, and native-tool authoring platform. The package is not only a command named `nim`; it is an ecosystem bootstrapper whose adoption is tied to Nimble packages, editor integrations, and a compiler that delegates portability to mature C/C++ toolchains.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.config/nim/config.nimsconfig.nims<project>.nims%APPDATA%\nim\config.nimsconfig.nims<project>.nims可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nim | cli | 全局可执行文件 | |
nimble | cli | 全局可执行文件 | |
nimgrep | cli | 全局可执行文件 | |
nimpretty | cli | 全局可执行文件 | |
nimsuggest | cli | 全局可执行文件 | |
testament | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:nim |
|---|---|
| 版本 | 2.2.10 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nim |
| 主页 | https://nim-lang.org/ |
| 仓库 | https://github.com/nim-lang/Nim |
| 上游文档 | https://nim-lang.github.io/Nim |
| 许可证 | MIT |
| 源码归档 | https://nim-lang.org/download/nim-2.2.10.tar.xz |
| 最后更新 | 2026-04-24T12:22:21Z |
| Pulse | updated |
| 构建依赖 | help2man |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nim |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
nim
nix profile install nixpkgs#nimnim 1.6.14-1ubuntu2
Nim programming language - compiler
sudo apt install nimnim-doc 1.6.14-1ubuntu2
Nim programming language - documentation
sudo apt install nim-docnim 2.2.0-r0
A systems and applications programming language
sudo apk add nimnim-dbg 2.2.0-r0
A systems and applications programming language (debug build)
sudo apk add nim-dbgnim-dev 2.2.0-r0
A systems and applications programming language (development files)
sudo apk add nim-devnim-gdb 2.2.0-r0
A systems and applications programming language (gdb printers)
sudo apk add nim-gdbnimsuggest 2.2.0-r0
idetools for the nim language
sudo apk add nimsuggestnim 2.2.10-1
Imperative, multi-paradigm, compiled programming language
sudo pacman -S nimnim 2.2.10-1.1
A statically typed compiled systems programming language
sudo zypper install nimnim
sudo port install nimnim
choco install nimmain/nim
scoop install main/nimnimble
nix profile install nixpkgs#nimblenimble 0.14.2-r0
Package manager for the Nim programming language
https://github.com/nim-lang/nimble
sudo apk add nimblenimble-bash-completion 0.14.2-r0
Bash completions for nimble
https://github.com/nim-lang/nimble
sudo apk add nimble-bash-completion来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.