chore: polish

This commit is contained in:
Ryan Yin
2023-07-19 10:35:14 +08:00
parent a0ebe2a81a
commit 2df64919e0
2 changed files with 6 additions and 2 deletions

View File

@ -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: {