79339611

Date: 2025-01-08 14:49:41
Score: 0.5
Natty:
Report link

After some quick discussion in Vimjoyer's Discord server:

  1. Nix evaluates config.scripts.output because I pointed nix-build to it with the -A flag.

  2. To evaluate config.scripts.output, Nix must know the value of config.requestParams.

  3. Evaluating config.requestParams requires knowing the value of ${config.scripts.geocode}

${config.script.geocode} is a string interpolation. Evaluating the value of config.script.geocode eventually boils down to the return value of mkDerivation. Per this, mkDerivation outputs a special attribute set that can be used in string interpolation,

and in that case evaluates to the Nix store path of its build result.

So this is why config.script.geocode gets built.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: kalyanco