mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
Create Derivation::fromJSON
And test, of course
This commit is contained in:
parent
81dfc2b012
commit
fe9cbe838c
5 changed files with 197 additions and 19 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <variant>
|
||||
#include "hash.hh"
|
||||
#include "comparator.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -30,6 +31,8 @@ struct TextHash {
|
|||
* Hash of the contents of the text/file.
|
||||
*/
|
||||
Hash hash;
|
||||
|
||||
GENERATE_CMP(TextHash, me->hash);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -46,6 +49,8 @@ struct FixedOutputHash {
|
|||
Hash hash;
|
||||
|
||||
std::string printMethodAlgo() const;
|
||||
|
||||
GENERATE_CMP(FixedOutputHash, me->method, me->hash);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue