mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-08-09 04:54:35 +02:00
chore: polish
This commit is contained in:
@ -86,10 +86,13 @@ Note that the copied template cannot be used directly. You need to modify it to
|
||||
};
|
||||
|
||||
# `outputs` are all the build result of the flake.
|
||||
#
|
||||
# A flake can have many use cases and different types of outputs.
|
||||
# parameters in `outputs` are defined in `inputs` and
|
||||
#
|
||||
# parameters in function `outputs` are defined in `inputs` and
|
||||
# can be referenced by their names. However, `self` is an exception,
|
||||
# this special parameter points to the `outputs` itself(self-reference)
|
||||
#
|
||||
# The `@` syntax here is used to alias the attribute set of the
|
||||
# inputs's parameter, making it convenient to use inside the function.
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
|
Reference in New Issue
Block a user