添加NixOS的声明式MoonBit环境安装 #913
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
为 NixOS 用户添加一份声明式的安装指南,用于配置 MoonBit 开发环境。
NixOS由于所有程序和库均放在/nix/store下且不可写,包需要经过patchelf,和对生成的包添加环境变量之类的操作。否则无法正常使用。而MoonBit无论是CLI还是VSCode插件都没有官方Nixpkgs。给NixOS用户使用MoonBit带来了困难。 我特地自己打了包并撰写了使用说明,经过测试可以正常使用,我同时给自己的仓库设置好了自动更新脚本,会随着MoonBit的更新,自动更新我的打包。