20 lines
457 B
Markdown
20 lines
457 B
Markdown
|
|
# 42-lib-outputs
|
||
|
|
|
||
|
|
This example shows a `lib` output for pure reusable helpers and data.
|
||
|
|
|
||
|
|
It includes:
|
||
|
|
|
||
|
|
- one `lib` attrset with rollout data and render helpers,
|
||
|
|
- one package that turns those helpers into a runnable report, and
|
||
|
|
- a check that proves the exported `lib` values can be consumed through the flake output.
|
||
|
|
|
||
|
|
Useful commands:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
nix flake show
|
||
|
|
nix eval .#lib.ownerByService.api --raw
|
||
|
|
nix build
|
||
|
|
./result/bin/show-lib-plan
|
||
|
|
nix flake check
|
||
|
|
```
|