aboutsummaryrefslogtreecommitdiff
path: root/src/nix/nar-dump-path.md
blob: 26191ad250f06307d5ada55cba112379b1feda4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
R""(

# Examples

* To serialise directory `foo` as a NAR:

  ```console
  # nix nar dump-path ./foo > foo.nar
  ```

# Description

This command generates a NAR file containing the serialisation of
*path*, which must contain only regular files, directories and
symbolic links. The NAR is written to standard output.

)""