# 使用 Homebrew, Nix, winget 安装 gersemi

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

## 安装

```sh
sudo av install brew:gersemi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gersemi
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gersemi
```

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

### Windows

- winget (92%):

```sh
winget install --id BlankSpruce.Gersemi -e
```

  证据: Windows Package Manager source index: BlankSpruce.Gersemi from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:gersemi
- **软件包管理器:** Homebrew
- **版本:** 0.28.0
- **来源摘要:** Formatter to make your CMake code the real treasure
- **主页:** <https://github.com/BlankSpruce/gersemi>
- **最后更新:** 2026-07-22T18:29:47Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gersemi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.28.0
## 项目历史与用法

gersemi is a Python-based formatter for CMake source files. It targets CMakeLists.txt, CMakeLists.txt.in, .cmake, and .cmake.in files, and aims to provide a low-configuration formatting style for build-system code.

### 项目历史

The gersemi repository was opened in 2020. Its README describes a formatter that can be installed from PyPI, run as a command-line tool, configured with `.gersemirc`, and integrated into pre-commit through a dedicated hook repository.

### 采用历史

gersemi fills a practical niche for projects that already enforce code style but also want deterministic formatting for CMake files. Package availability through Homebrew, Nix, and Windows package metadata reflects use beyond direct PyPI installs.

### 使用方式

Practitioners run gersemi in check, in-place, or diff mode across files or directories. The tool discovers common CMake file names, reads formatting configuration from `.gersemirc` or command-line flags, supports custom command definitions and extensions, and can be used in pre-commit hooks.

### 为什么软件包爱好者会关心

For package-manager users, gersemi is useful because it brings Black-like formatting habits to CMake projects through a single CLI. It is especially handy in CI and pre-commit setups where reproducible formatting matters more than editor-specific integrations.

### 时间线

- 2020: The gersemi repository was opened on GitHub.
- 2020s: The README documents PyPI installation, CLI modes, `.gersemirc`, pre-commit integration, extensions, cache support, and ignore-file handling.

### Related projects

- CMake, pre-commit, PyPI, gersemi-pre-commit

### 来源

- <https://api.github.com/repos/BlankSpruce/gersemi>
- <https://github.com/BlankSpruce/gersemi>
- <https://github.com/BlankSpruce/gersemi-pre-commit>
- <https://raw.githubusercontent.com/BlankSpruce/gersemi/master/README.md>


## 安全说明

没有找到 gersemi 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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

- Unix: .gersemirc
## 其他软件包管理器记录

- Nix - gersemi: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/gersemi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - BlankSpruce.Gersemi: normalized package name match | Windows Package Manager source index: BlankSpruce.Gersemi from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/gersemi.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gersemi.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
