1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-21 11:30:30 -04:00

Merge remote-tracking branch 'obsidian/path-info' into ca-drv-exotic

This commit is contained in:
John Ericson 2020-10-13 03:46:41 +00:00
commit d8d7f50f62

View file

@ -7,7 +7,7 @@
namespace nix { namespace nix {
/* /*
* Mini content address * Content addressing method
*/ */
/* We only have one way to hash text with references, so this is a single-value /* We only have one way to hash text with references, so this is a single-value
@ -50,6 +50,10 @@ std::string renderContentAddressMethodAndHash(ContentAddressMethod cam, HashType
std::pair<ContentAddressMethod, HashType> parseContentAddressMethod(std::string_view caMethod); std::pair<ContentAddressMethod, HashType> parseContentAddressMethod(std::string_view caMethod);
/*
* Mini content address
*/
struct TextHash { struct TextHash {
Hash hash; Hash hash;
}; };
@ -61,7 +65,6 @@ struct FixedOutputHash {
std::string printMethodAlgo() const; std::string printMethodAlgo() const;
}; };
/* /*
We've accumulated several types of content-addressed paths over the years; We've accumulated several types of content-addressed paths over the years;
fixed-output derivations support multiple hash algorithms and serialisation fixed-output derivations support multiple hash algorithms and serialisation