Skip to content

Commit

Permalink
ifd: expressions can evaluate to other values
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Feb 16, 2024
1 parent 461bbda commit ced7bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/ifd.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Import From Derivation (IFD)

[[nix|Nix]] expressions are *evaluated* to produce #[[drv|derivations]]. These derivations when *realized* usually produce the compiled binary packages. Sometimes, realizing a derivation can produce a Nix expression representing another derivation. This generated Nix expression too needs to be *evaluated* to its derivation before it can be *realized*. This secondary evaluation is achieved by `import`ing from the derivation being evaluated, and is called "import from derivation" or IFD.
[[nix|Nix]] expressions are *evaluated* to produce #[[drv|derivations] (among other values). These derivations when *realized* usually produce the compiled binary packages. Sometimes, realizing a derivation can produce a Nix expression representing another derivation. This generated Nix expression too needs to be *evaluated* to its derivation before it can be *realized*. This secondary evaluation is achieved by `import`ing from the derivation being evaluated, and is called "import from derivation" or IFD.

For detailed explanation, see [this blog post](https://blog.hercules-ci.com/2019/08/30/native-support-for-import-for-derivation/).

0 comments on commit ced7bcf

Please sign in to comment.