mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
transposition: Improve doc
This commit is contained in:
parent
7f53fdb7bd
commit
9551c1dbc1
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,13 @@ in
|
||||||
description = ''
|
description = ''
|
||||||
A helper that defines transposed attributes in the flake outputs.
|
A helper that defines transposed attributes in the flake outputs.
|
||||||
|
|
||||||
|
When you define `transposition.foo = { };`, definitions are added to the effect of (pseudo-code):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
flake.foo.''${system} = (perSystem system).foo;
|
||||||
|
perInput = system: inputFlake: inputFlake.foo.''${system};
|
||||||
|
```
|
||||||
|
|
||||||
Transposition is the operation that swaps the indices of a data structure.
|
Transposition is the operation that swaps the indices of a data structure.
|
||||||
Here it refers specifically to the transposition between
|
Here it refers specifically to the transposition between
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue