tangled
alpha
login
or
join now
oeiuwq.com
/
flake-aspects
2
fork
atom
fake.modules transposition for aspect-oriented Dendritic Nix. with cross-aspect dependencies. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/
dendrix.oeiuwq.com/Dendritic.html
dendritic
nix
aspect
oriented
2
fork
atom
overview
issues
1
pulls
pipelines
Update README.md
authored by
oeiuwq.com
and committed by
GitHub
1 week ago
82a47265
b0f62449
-36
1 changed file
expand all
collapse all
unified
split
README.md
-36
README.md
···
79
79
80
80
Unlike `flake.modules.<class>.<aspect>` which is _flat_, aspects form a _tree_ via `provides` (alias: `_`) and a _graph_ via `includes`.
81
81
82
82
-
---
83
83
-
84
84
-
## Quick Start
85
85
-
86
86
-
```nix
87
87
-
# flake.nix
88
88
-
{
89
89
-
inputs.flake-aspects.url = "github:vic/flake-aspects";
90
90
-
outputs = { flake-parts, flake-aspects, nixpkgs, ... }@inputs:
91
91
-
flake-parts.lib.mkFlake { inherit inputs; } {
92
92
-
imports = [ flake-aspects.flakeModule ];
93
93
-
flake.aspects = { aspects, ... }: {
94
94
-
my-desktop = {
95
95
-
nixos = { };
96
96
-
darwin = { };
97
97
-
includes = [ aspects.my-tools ];
98
98
-
};
99
99
-
my-tools.nixos = { };
100
100
-
};
101
101
-
};
102
102
-
}
103
103
-
```
104
104
-
105
82
Also works [without flakes](checkmate/modules/tests/without_flakes.nix) via `new-scope` and `lib.evalModules`.
106
83
107
84
## Documentation
108
85
109
86
**[Full documentation](https://flake-aspects.oeiuwq.com)**
110
110
-
111
111
-
| Section | Content |
112
112
-
| ------------------------------------------------------------------- | ------------------------------------------------------------------- |
113
113
-
| [Concepts](https://vic.github.io/flake-aspects/concepts/transpose/) | Transpose, resolution algorithm, providers & fixpoint |
114
114
-
| [Guides](https://vic.github.io/flake-aspects/guides/flake-parts/) | flake-parts, standalone, dependencies, parametric, functor, forward |
115
115
-
| [Reference](https://vic.github.io/flake-aspects/reference/api/) | API exports, type system, test suite |
116
116
-
117
117
-
## Testing
118
118
-
119
119
-
```shell
120
120
-
nix run github:vic/checkmate#fmt --override-input target .
121
121
-
nix flake check github:vic/checkmate --override-input target . -L
122
122
-
```