1.6 KiB
R""(
Examples
-
Evaluate the flake in the current directory, and build its checks:
# nix flake check
-
Verify that the
patchelf
flake evaluates, but don't build its checks:# nix flake check --no-build github:NixOS/patchelf
Description
This command verifies that the flake specified by flake reference
flake-url can be evaluated successfully (as detailed below), and
that the derivations specified by the flake's checks
output can be
built successfully.
Evaluation checks
The following flake output attributes must be derivations:
checks.
system.
namedefaultPackage.
system`devShell.
system`nixosConfigurations.
name`.config.system.build.toplevelpackages.
system.
name
The following flake output attributes must be app definitions:
apps.
system.
namedefaultApp.
system`
The following flake output attributes must be template definitions:
defaultTemplate
templates
.`name
The following flake output attributes must be Nixpkgs overlays:
overlay
overlays
.`name
The following flake output attributes must be NixOS modules:
nixosModule
nixosModules
.`name
The following flake output attributes must be bundlers:
bundlers
.`namedefaultBundler
In addition, the hydraJobs
output is evaluated in the same way as
Hydra's hydra-eval-jobs
(i.e. as a arbitrarily deeply nested
attribute set of derivations). Similarly, the
legacyPackages
.system output is evaluated like nix-env -qa
.
)""