22 lines
338 B
Markdown
22 lines
338 B
Markdown
|
|
# 13-overlay
|
||
|
|
|
||
|
|
This example shows a small flake overlay.
|
||
|
|
|
||
|
|
It includes:
|
||
|
|
|
||
|
|
- `overlays.default`,
|
||
|
|
- one package added by the overlay,
|
||
|
|
- a package output that imports `nixpkgs` with that overlay, and
|
||
|
|
- a check run by `nix flake check`.
|
||
|
|
|
||
|
|
Useful commands:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
nix build
|
||
|
|
./result/bin/hello-overlay
|
||
|
|
|
||
|
|
nix run
|
||
|
|
nix flake check
|
||
|
|
nix flake show
|
||
|
|
```
|