mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
Change deriving path pseudo-code
This commit is contained in:
parent
fb7fc6a373
commit
0cd1e7828d
1 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ In pseudo code:
|
|||
type OutputName = String
|
||||
|
||||
data DerivingPath
|
||||
= ConstantPath { path : StorePath }
|
||||
= Constant { path : StorePath }
|
||||
| Output {
|
||||
drvPath : StorePath,
|
||||
output : OutputName,
|
||||
|
|
@ -235,7 +235,7 @@ Derivations are the same except for using the new extended deriving path data ty
|
|||
type OutputName = String
|
||||
|
||||
data DerivingPath
|
||||
= ConstantPath { storeObj : StorePath }
|
||||
= Constant { storeObj : StorePath }
|
||||
| Output {
|
||||
drv : DerivingPath, -- Note: changed
|
||||
output : OutputName,
|
||||
|
|
@ -244,7 +244,7 @@ data DerivingPath
|
|||
|
||||
Now, the `drv` field of `Output` is itself a `DerivingPath` instead of an `StorePath`.
|
||||
|
||||
Under this extended model, `DerivingPath`s are thus inductively built up from an `ConstantPath`, contains in 0 or more outer `Output`s.
|
||||
Under this extended model, `DerivingPath`s are thus inductively built up from an `Constant`, contains in 0 or more outer `Output`s.
|
||||
|
||||
### Encoding {#deriving-path-encoding}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue