Man page - nix3-nar(1)

Packages contains this manual

Manual

nix3-nar

Name
Synopsis
Description
File format
Options
Logging-related options
Miscellaneous global options

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

Name

nix nar - create or inspect NAR files

Synopsis

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

Description

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

File format

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

Options

Logging-related options

β€’

--debug

Set the logging verbosity level to β€˜debug’.

β€’

--log-format format

Set the format of log output; one of raw, internal-json, bar or bar-with-logs.

β€’

--print-build-logs / -L

Print full build logs on standard error.

β€’

--quiet

Decrease the logging verbosity level.

β€’

--verbose / -v

Increase the logging verbosity level.

Miscellaneous global options

β€’

--help

Show usage information.

β€’

--offline

Disable substituters and consider all previously downloaded files up-to-date.

β€’

--option name value

Set the Nix configuration setting name to value (overriding nix.conf).

β€’

--refresh

Consider all previously downloaded files out-of-date.

β€’

--version

Show version information.

Note

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