diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-23 09:40:28 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-23 09:40:28 -0600 |
commit | abe0552504b067bb5edd95dadaf714db6d2843b6 (patch) | |
tree | 2e834a819a8be09e0e4dab712d8cfafc5ba859be /src/libstore/derivations.hh | |
parent | 13e87535ffa195690213ed656e2b61218c6894a3 (diff) | |
parent | 015e1c2131de938d61fa50c8df9d3987c42bcb39 (diff) |
Merge remote-tracking branch 'upstream/master' into add-trace
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r-- | src/libstore/derivations.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh index d349c6d4d..68c53c1ff 100644 --- a/src/libstore/derivations.hh +++ b/src/libstore/derivations.hh @@ -1,8 +1,9 @@ #pragma once +#include "path.hh" #include "types.hh" #include "hash.hh" -#include "store-api.hh" +#include "content-address.hh" #include <map> @@ -15,9 +16,7 @@ namespace nix { struct DerivationOutput { StorePath path; - std::string hashAlgo; /* hash used for expected hash computation */ - std::string hash; /* expected hash, may be null */ - void parseHashInfo(FileIngestionMethod & recursive, Hash & hash) const; + std::optional<FixedOutputHash> hash; /* hash used for expected hash computation */ }; typedef std::map<string, DerivationOutput> DerivationOutputs; @@ -70,6 +69,7 @@ struct Derivation : BasicDerivation class Store; +enum RepairFlag : bool { NoRepair = false, Repair = true }; /* Write a derivation to the Nix store, and return its path. */ StorePath writeDerivation(ref<Store> store, |