aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-31 16:01:50 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-03-31 16:01:50 +0200
commit4e043c2f32af3d3d49c53a2d06746e2fd6967836 (patch)
tree5c7a82cb9defa14e47c2978d1bf7186f2b863184
parentd7fc33c8426768040b322a060b5a50433b3a78e6 (diff)
Document isPure()
-rw-r--r--src/libstore/derivations.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index b62e40786..98e59b64e 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -135,7 +135,10 @@ struct DerivationType : _DerivationTypeRaw {
separately. Never true for non-CA derivations. */
bool needsNetworkAccess() const;
- /* FIXME */
+ /* Whether the derivation is expected to produce the same result
+ every time, and therefore it only needs to be built once. This
+ is only false for derivations that have the attribute '__impure
+ = true'. */
bool isPure() const;
/* Does the derivation knows its own output paths?