Skip to content

Commit c6e2f00

Browse files
authored
docs: the Nix install line is nix profile add from Nix 2.30, nix profile install before it (mcpp#1010) (#1013)
1 parent 1a64a71 commit c6e2f00

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ environment. On PyPI the name `mcpp` belongs to an unrelated project, hence
186186

187187
```bash
188188
nix run github:mcpp-community/nix-mcpp -- --version # try it
189-
nix profile install github:mcpp-community/nix-mcpp # install it
189+
nix profile add github:mcpp-community/nix-mcpp # install it (Nix 2.30+)
190+
nix profile install github:mcpp-community/nix-mcpp # the same, before Nix 2.30
190191
```
191192

192193
The flake in [`mcpp-community/nix-mcpp`](https://github.com/mcpp-community/nix-mcpp)

‎README.zh-CN.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ pip install mcpp-bin
166166

167167
```bash
168168
nix run github:mcpp-community/nix-mcpp -- --version # 试用
169-
nix profile install github:mcpp-community/nix-mcpp # 安装
169+
nix profile add github:mcpp-community/nix-mcpp # 安装(Nix 2.30 起)
170+
nix profile install github:mcpp-community/nix-mcpp # 同上,Nix 2.30 之前
170171
```
171172

172173
[`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/` 中。

0 commit comments

Comments
 (0)