Import From Derivation: Difference between revisions

imported>Asymmetric
m fix code syntax
imported>Asymmetric
Clarify example documentation
Line 29: Line 29:


   # Import the derivation. This forces `derivation-to-import` to become
   # Import the derivation. This forces `derivation-to-import` to become
   # a string. This is normal behavior for Nix and Nixpkgs. The specific
   # a string. This is normal behavior for Nix and Nixpkgs. The string is
   # difference here is the evaluation itself requires the result to be
   # then evaluated, which in this case triggers a build, which blocks
   # built during the evaluation in order to continue evaluating.
   # the single-threaded evaluation.
   imported-derivation = import derivation-to-import;
   imported-derivation = import derivation-to-import;