Ubuntu Manpages

nix nar

create or inspect NAR files

Warning
This program is experimental and its interface is subject to change.

nix nar [option…] subcommand

where subcommand is one of the following:

  • nix nar cat - print the contents of a file inside a NAR file on stdout

  • nix nar dump-path - serialise a path to stdout in NAR format

  • nix nar ls - show information about a path inside a NAR file

  • nix nar pack - serialise a path to stdout in NAR format

nix nar provides several subcommands for creating and inspecting Nix Archives (NARs).

For the definition of the Nix Archive file format, see within the protocols chapter of the manual.

Set the logging verbosity level to ‘debug’.
Set the format of log output; one of raw, internal-json, bar or bar-with-logs.
Print full build logs on standard error.
Decrease the logging verbosity level.
Increase the logging verbosity level.

Show usage information.
Disable substituters and consider all previously downloaded files up-to-date.
Set the Nix configuration setting name to value (overriding nix.conf).
Consider all previously downloaded files out-of-date.
Show version information.

Note

See man nix.conf for overriding configuration settings with command line flags.