Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, apt, zypper, scoop 安装 nim

查看 nim 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nim

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nim

MacPorts ports tree · lang/nim/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nim

Alpine Linux edge package indexes · nim · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#nim

nixpkgs package indexes · nim · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S nim

Arch Linux sync databases · nim · 来源: geo.mirror.pkgbuild.com

Ubuntu apt已验证 · 92%
sudo apt install nim

Ubuntu 24.04 LTS package indexes · nim · 来源: archive.ubuntu.com

openSUSE zypper已验证 · 92%
sudo zypper install nim

openSUSE Tumbleweed package metadata · nim · 来源: download.opensuse.org

概览

软件包摘要

Statically typed compiled systems programming language

命令和别名

  • nim
  • nimble
  • nimgrep
  • nimpretty
  • nimsuggest
  • testament

历史

项目历史与用法

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.

时间线

  • {'date': '2014-12-29', 'event': 'Version 0.10.2 completed the rename from Nimrod to Nim and Babel to Nimble.'}
  • {'date': '2019-08', 'event': 'The project reported passing 1,000 Nimble packages.'}
  • {'date': '2019-09-23', 'event': 'Nim 1.0 released with a stable-base guarantee for the 1.x line.'}
  • {'date': '2023-08-01', 'event': 'Nim 2.0 released with ARC/ORC refinements and toolchain changes.'}
  • {'date': '2026-04-24', 'event': 'Nim 2.2.10 released as a stable 2.2 patch release.'}

Related projects

  • Nimble
  • choosenim
  • Atlas
  • nimsuggest
  • nimpretty
  • testament

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:programming language

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.config/nim/config.nimsconfig.nims<project>.nims
Windows
%APPDATA%\nim\config.nimsconfig.nims<project>.nims

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nimcli全局可执行文件
nimblecli全局可执行文件
nimgrepcli全局可执行文件
nimprettycli全局可执行文件
nimsuggestcli全局可执行文件
testamentcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.2.10
管理器更新时间2026-04-24
本地数据OK
上游not checked
检测到的最新版本未检测到

https://nim-lang.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://nim-lang.org/none 置信度

安装元数据

软件包元数据

软件包键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
Pulseupdated
构建依赖help2man
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenim
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • atlas
  • mongodb-atlas-cli
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

nim

nix profile install nixpkgs#nim
  • normalized package name match
  • 匹配方式:Nim
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: nim from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

nim 1.6.14-1ubuntu2

Nim programming language - compiler

https://nim-lang.org/

sudo apt install nim
  • Section: universe/devel
  • Architecture: amd64
  • 3 依赖
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Nim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nim from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nim-doc 1.6.14-1ubuntu2

Nim programming language - documentation

https://nim-lang.org/

sudo apt install nim-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: nim
  • normalized package name match
  • 匹配方式:Nim
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nim-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nim 2.2.0-r0

A systems and applications programming language

https://nim-lang.org/

sudo apk add nim
  • License: MIT
  • Architecture: x86_64
  • Source Package: nim
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nim-dbg 2.2.0-r0

A systems and applications programming language (debug build)

https://nim-lang.org/

sudo apk add nim-dbg
  • License: MIT
  • Architecture: x86_64
  • Source Package: nim
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nim-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nim-dev 2.2.0-r0

A systems and applications programming language (development files)

https://nim-lang.org/

sudo apk add nim-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: nim
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nim-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nim-gdb 2.2.0-r0

A systems and applications programming language (gdb printers)

https://nim-lang.org/

sudo apk add nim-gdb
  • License: MIT
  • Architecture: x86_64
  • Source Package: nim
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nim-gdb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

nimsuggest 2.2.0-r0

idetools for the nim language

https://nim-lang.org/

sudo apk add nimsuggest
  • License: MIT
  • Architecture: x86_64
  • Source Package: nim
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nimsuggest from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

nim 2.2.10-1

Imperative, multi-paradigm, compiled programming language

https://nim-lang.org/

sudo pacman -S nim
  • License: MIT
  • Architecture: x86_64
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nim
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: nim from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

nim 2.2.10-1.1

A statically typed compiled systems programming language

https://nim-lang.org/

sudo zypper install nim
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: nim
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nim
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nim from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

nim

sudo port install nim
  • normalized package name match
  • 匹配方式:Nim
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/nim/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

nim

choco install nim
  • normalized package name match
  • 匹配方式:Nim
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: nim from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.1916','tektoncd-cli'
Scoop95%

main/nim

scoop install main/nim
  • normalized package name match
  • 匹配方式:Nim
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/nim.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
Nix92%

nimble

nix profile install nixpkgs#nimble
  • installed executable or alias match
  • 匹配方式:Nimble
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ni/nimble/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk92%

nimble 0.14.2-r0

Package manager for the Nim programming language

https://github.com/nim-lang/nimble

sudo apk add nimble
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: nimble
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Nimble
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nimble from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

nimble-bash-completion 0.14.2-r0

Bash completions for nimble

https://github.com/nim-lang/nimble

sudo apk add nimble-bash-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: nimble
  • installed executable or alias match
  • 匹配方式:Nimble
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nimble-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment