diff --git a/README.md b/README.md index 5c6781fae..20ed6456c 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,8 @@ environment. On PyPI the name `mcpp` belongs to an unrelated project, hence ```bash nix run github:mcpp-community/nix-mcpp -- --version # try it -nix profile install github:mcpp-community/nix-mcpp # install it +nix profile add github:mcpp-community/nix-mcpp # install it (Nix 2.30+) +nix profile install github:mcpp-community/nix-mcpp # the same, before Nix 2.30 ``` The flake in [`mcpp-community/nix-mcpp`](https://github.com/mcpp-community/nix-mcpp) diff --git a/README.zh-CN.md b/README.zh-CN.md index bdca8e79b..a625f9c66 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -166,7 +166,8 @@ pip install mcpp-bin ```bash nix run github:mcpp-community/nix-mcpp -- --version # 试用 -nix profile install github:mcpp-community/nix-mcpp # 安装 +nix profile add github:mcpp-community/nix-mcpp # 安装(Nix 2.30 起) +nix profile install github:mcpp-community/nix-mcpp # 同上,Nix 2.30 之前 ``` [`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/` 中。