19 lines
368 B
Markdown
19 lines
368 B
Markdown
|
|
# 17-package-from-source
|
||
|
|
|
||
|
|
This example shows packaging a selected local source tree.
|
||
|
|
|
||
|
|
It includes:
|
||
|
|
|
||
|
|
- a derivation built from a local source tree,
|
||
|
|
- `lib.fileset.toSource` to include only selected files, and
|
||
|
|
- a check that proves excluded files are not in the packaged source.
|
||
|
|
|
||
|
|
Useful commands:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
nix build
|
||
|
|
./result/bin/source-greet
|
||
|
|
nix run
|
||
|
|
nix flake check
|
||
|
|
```
|