@@ -7,6 +7,9 @@
7 # the output. If this is set but does not exist
7 # the output. If this is set but does not exist
8 # the derivation will fail but with a message
8 # the derivation will fail but with a message
9 # advising how to populate it.
9 # advising how to populate it.
11+ # A name to use when referring to the thing currently being
12+ # materialized. Clients can pass in an attribute name or similar.
10, reasonNotSafe ? null
13, reasonNotSafe ? null
11 # Some times there a reasont the derivation will
14 # Some times there a reasont the derivation will
12 # not produce output that can be safely materialized.
15 # not produce output that can be safely materialized.
@@ -35,8 +38,8 @@ let
36 unchecked =
39 unchecked =
38− sha256message = "To make this a fixed-output derivation but not materialized, set `${sha256Arg}` to the output of ${calculateMaterializedSha}";
41+ sha256message = "To make ${this} a fixed-output derivation but not materialized, set `${sha256Arg}` to the output of the 'calculateMaterializedSha' script in 'passthru'.";
39− materializeMessage = "To materialize the output entirely, pass a writable path as the `materialized` argument and pass that path to ${generateMaterialized}";
42+ materializeMessage = "To materialize ${this} entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.";
40 in if reasonNotSafe != null
43 in if reasonNotSafe != null
42 # Warn the user if they tried to pin stuff down when it is not safe
45 # Warn the user if they tried to pin stuff down when it is not safe