nix-community/haumea
关于
基于文件系统的 Nix 模块系统 [维护者=@figsoda]
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Haumea
Filesystem-based module system for Nix
Haumea is not related to or a replacement for NixOS modules. It is closer to the module systems of traditional programming languages, with support for file hierarchy and visibility.
In short, haumea maps a directory of Nix files into an attribute set:
| From | To |
|---|---|
|
|
Haumea's source code is hosted on GitHub under the MPL-2.0 license. Haumea bootstraps itself. You can see the entire implementation in the src directory.
Why Haumea?
No more manual imports
Manually importing files can be tedious, especially when there are many of them. Haumea takes care of all of that by automatically importing the files into an attribute set.
Modules
Haumea takes inspiration from traditional programming languages. Visibility makes it easy to create utility modules, and haumea makes self-referencing and creating fixed points a breeze with the introduction of
self,super, androot.Organized directory layout
What you see is what you get. By default[^1], the file tree will look exactly like the resulting attribute set.
Extensibility
Changing how the files are loaded is as easy as specifying a
loader, and thetransformeroption makes it possible to extensively manipulate the tree.
[^1]: Unless you are doing transformer magic
探索相关项目
加载中…