1
0
Fork 0
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:
Robert Hensing 2023-10-01 13:34:27 +01:00
parent 7f53fdb7bd
commit 9551c1dbc1

View file

@ -31,6 +31,13 @@ in
description = ''
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.
Here it refers specifically to the transposition between