Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,23 @@ environment. On PyPI the name `mcpp` belongs to an unrelated project, hence
</details>

<details>
<summary><b>Option 5</b> — let an AI assistant install it for you</summary>
<summary><b>Option 5</b> — Nix (flake)</summary>

```bash
nix run github:mcpp-community/nix-mcpp -- --version # try it
nix profile install github:mcpp-community/nix-mcpp # install it
```

The flake in [`mcpp-community/nix-mcpp`](https://github.com/mcpp-community/nix-mcpp)
packages the same prebuilt release binary for Linux x86_64 / aarch64 and macOS
on Apple silicon, and follows each stable release. Its overlay adds
`pkgs.mcpp-bin`: nixpkgs' `mcpp` is an unrelated C preprocessor. Per-user data
still lives in `~/.mcpp/`.

</details>

<details>
<summary><b>Option 6</b> — let an AI assistant install it for you</summary>

Copy the following prompt to your AI coding assistant (Claude Code / Cursor / Copilot, etc.):

Expand Down
14 changes: 13 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,19 @@ pip install mcpp-bin
</details>

<details>
<summary><b>方式 5</b>:由 AI 助手安装</summary>
<summary><b>方式 5</b>:Nix(flake)</summary>

```bash
nix run github:mcpp-community/nix-mcpp -- --version # 试用
nix profile install github:mcpp-community/nix-mcpp # 安装
```

[`mcpp-community/nix-mcpp`](https://github.com/mcpp-community/nix-mcpp) 中的 flake 打包的是同一份预编译 release 二进制,支持 Linux x86_64 / aarch64 与 Apple 芯片上的 macOS,并跟随每个稳定版更新。它的 overlay 提供 `pkgs.mcpp-bin`,因为 nixpkgs 中的 `mcpp` 是一个无关的 C 预处理器。每个用户的数据仍在各自的 `~/.mcpp/` 中。

</details>

<details>
<summary><b>方式 6</b>:由 AI 助手安装</summary>

将以下提示词发给 AI 编码助手(Claude Code、Cursor、Copilot 等):

Expand Down