diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-02-27 05:46:59 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-02-27 05:46:59 +0000 |
commit | 7863036634ccb07e1933cd0b106fc27d5c073004 (patch) | |
tree | 36bf7f334b739269eb741813a68adde714f67293 /src/libstore/derivations.cc | |
parent | 90d76fa399de4e207ea14ec4c0dd65434f60c152 (diff) | |
parent | f0ad29acc1f2c9e82679c3af434a8bf185f36b94 (diff) |
Merge remote-tracking branch 'obsidian/path-info' into ca-drv-exotic
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r-- | src/libstore/derivations.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index 288990b19..12f8e1800 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -59,6 +59,17 @@ bool derivationIsFixed(DerivationType dt) { assert(false); } +bool derivationHasKnownOutputPaths(DerivationType dt) { + switch (dt) { + case DerivationType::InputAddressed: return true; + case DerivationType::CAFixed: return true; + case DerivationType::CAFloating: return false; + case DerivationType::DeferredInputAddressed: return false; + }; + assert(false); +} + + bool derivationIsImpure(DerivationType dt) { switch (dt) { case DerivationType::InputAddressed: return false; |