368 B

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:

nix build
./result/bin/source-greet
nix run
nix flake check