diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-01 17:32:27 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-06-01 17:32:40 -0400 |
commit | 0e9438b6d381a87946ddda8d4bdd06707f9b0a48 (patch) | |
tree | 34fcd559dc27db89664667f4e0622b1fa51cb585 /src/libstore/derivations.hh | |
parent | 0cb67ecbd318a455fa4b459e29fadd0848238fca (diff) |
Create new file-hash files
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r-- | src/libstore/derivations.hh | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh index 5fc3b37da..e314beac1 100644 --- a/src/libstore/derivations.hh +++ b/src/libstore/derivations.hh @@ -3,6 +3,7 @@ #include "path.hh" #include "types.hh" #include "hash.hh" +#include "file-hash.hh" #include <map> @@ -12,20 +13,6 @@ namespace nix { /* Abstract syntax of derivations. */ -/// Pair of a hash, and how the file system was ingested -struct FileSystemHash { - FileIngestionMethod method; - Hash hash; - FileSystemHash(FileIngestionMethod method, Hash hash) - : method(std::move(method)) - , hash(std::move(hash)) - { } - FileSystemHash(const FileSystemHash &) = default; - FileSystemHash(FileSystemHash &&) = default; - FileSystemHash & operator = (const FileSystemHash &) = default; - std::string printMethodAlgo() const; -}; - struct DerivationOutput { StorePath path; |