# 使用 Homebrew, apk, Nix, pacman 安装 nickel

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

## 安装

```sh
sudo av install brew:nickel
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nickel
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nickel
```

  证据: Alpine Linux edge package indexes: nickel from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#nickel
```

  证据: nixpkgs package indexes: pkgs/by-name/ni/nickel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S nickel
```

  证据: Arch Linux sync databases: nickel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:nickel
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nickel>
- **版本:** 1.17.0
- **来源摘要:** Better configuration for less
- **主页:** <https://nickel-lang.org/>
- **仓库:** <https://github.com/nickel-lang/nickel>
- **上游文档:** <https://nickel-lang.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/nickel-lang/nickel/archive/refs/tags/1.17.0.tar.gz>
- **最后更新:** 2026-07-04T16:53:44+09:00
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- nickel (cli)
- nickel (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 1.17.0
- 管理器更新时间: 2026-07-04
- 本地数据: OK
- 上游仓库: https://github.com/nickel-lang/nickel
- 检测到的最新版本: 1.17.0 (当前)
## 项目历史与用法

Nickel is Tweag's configuration language: a programmable, typed-when-useful, contract-aware alternative to plain JSON/YAML/TOML for generating static configuration.

### 项目历史

Tweag's October 22, 2020 open-sourcing post framed Nickel as the answer to what the Nix language might look like if separated from the Nix package manager and improved with experience from the Nix community. The repository rationale says Nickel originated as an effort to detach the Nix expression language from the package manager while adding typing and improving modularity.

Nickel 1.0 was announced on May 17, 2023. A February 19, 2026 Tweag retrospective says Nickel 1.0 shipped in May 2023 and that subsequent releases added algebraic data types, richer pattern matching, field punning, let blocks, contract improvements, `nickel test`, JSON/YAML/TOML interop improvements, package management, and expanded binary distribution.

### 采用历史

Nickel sits in the configuration-language niche alongside Nix, CUE, Dhall, Jsonnet, Starlark, and Pkl. The upstream README lists ecosystem projects for Kubernetes contracts, Terraform-Nickel, Bazel rules, JSON Schema conversion, editor tooling, and the Nickel language server.

Homebrew analytics on July 1, 2026 reported 244 install-on-request events over 365 days, so Homebrew adoption is modest. The broader adoption signal is stronger in Nix/Tweag-adjacent infrastructure work, where the project is useful as a standalone configuration language and as a way to generate or validate existing config formats.

### 使用方式

Users install the `nickel` binary, evaluate `.ncl` files with `nickel eval`, export to formats such as JSON/YAML/TOML, open a REPL, query field metadata, or use contracts as runtime schemas. Package nerds are especially interested in Nickel because it tries to keep Nix-like expressiveness while making schemas, validation, and editor feedback first-class.

The package also matters as a library and tooling surface: the 2026 retrospective mentions Python bindings, C and Go bindings, a stable Rust API, package management through `Nickel-pkg.ncl`, and up-to-date packages in nixpkgs, Arch Linux, and Homebrew.

### 时间线

- {'date': '2020-10-22', 'event': 'Tweag published the Nickel open-sourcing announcement.'}
- {'date': '2023-05-17', 'event': 'Nickel 1.0 release announced.'}
- {'date': '2026-02-19', 'event': 'Tweag published a post summarizing Nickel changes since 1.0.'}
- {'date': '2026-07-01', 'event': 'Homebrew API listed stable version 1.17.0.'}

### Related projects

- Nix
- CUE
- Dhall
- Jsonnet
- Starlark
- Pkl
- nickel-kubernetes
- Terraform-Nickel
- rules_nickel

### 来源

- <https://discourse.nixos.org/t/nickel-1-0-release/28252>
- <https://formulae.brew.sh/api/formula/nickel.json>
- <https://github.com/nickel-lang/nickel>
- <https://github.com/tweag/nickel/blob/master/RATIONALE.md>
- <https://www.tweag.io/blog/2020-10-22-nickel-open-sourcing/>
- <https://www.tweag.io/blog/2026-02-19-nickel-since-1-0/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nickel
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - nickel: normalized package name match | nixpkgs package indexes: pkgs/by-name/ni/nickel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - nickel - 1.16.0-r1: normalized package name match | Alpine Linux edge package indexes: nickel from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generic configuration language for less | https://nickel-lang.org/
- apk - nickel-doc - 1.16.0-r1: normalized package name match | Alpine Linux edge package indexes: nickel-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Generic configuration language for less (documentation) | https://nickel-lang.org/
- apk - nickel-language-server - 1.16.0-r1: normalized package name match | Alpine Linux edge package indexes: nickel-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | LSP server for Nickel configuration language | https://nickel-lang.org/
- apk - py3-nickel - 1.16.0-r1: normalized package name match | Alpine Linux edge package indexes: py3-nickel from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Python 3 bindings for nickel | https://nickel-lang.org/
- apk - py3-nickel-pyc - 1.16.0-r1: normalized package name match | Alpine Linux edge package indexes: py3-nickel-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for py3-nickel | https://nickel-lang.org/
- pacman - nickel - 1.17.0-1: normalized package name match | Arch Linux sync databases: nickel from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A generic configuration language | https://nickel-lang.org


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [dhall](https://www.automicvault.com/zh-hans/pkg/brew/dhall/) - Shares av.db curated category or tags: cli, configuration-language, language-runtime.
- [boa](https://www.automicvault.com/zh-hans/pkg/brew/boa/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [erg](https://www.automicvault.com/zh-hans/pkg/brew/erg/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [gluon](https://www.automicvault.com/zh-hans/pkg/brew/gluon/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [lune](https://www.automicvault.com/zh-hans/pkg/brew/lune/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [rhai](https://www.automicvault.com/zh-hans/pkg/brew/rhai/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [rune](https://www.automicvault.com/zh-hans/pkg/brew/rune/) - Shares av.db curated category or tags: cli, language-runtime, rust.
- [cue](https://www.automicvault.com/zh-hans/pkg/brew/cue/) - Local package facts share a topical domain. Shared terms: cli, configuration, language, language-runtime, runtime.

## Combined YAML source

View the package source record on GitHub. [combined/nickel.yml](https://github.com/automic-vault/db/blob/main/combined/nickel.yml)


## 来源

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