mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
parent
8451298b35
commit
b9d64f9318
4 changed files with 89 additions and 16 deletions
|
@ -36,10 +36,10 @@ struct LockedInputs
|
|||
struct LockedInput : LockedInputs
|
||||
{
|
||||
FlakeRef ref, originalRef;
|
||||
Hash narHash;
|
||||
TreeInfo info;
|
||||
|
||||
LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const Hash & narHash)
|
||||
: ref(ref), originalRef(originalRef), narHash(narHash)
|
||||
LockedInput(const FlakeRef & ref, const FlakeRef & originalRef, const TreeInfo & info)
|
||||
: ref(ref), originalRef(originalRef), info(info)
|
||||
{ }
|
||||
|
||||
LockedInput(const nlohmann::json & json);
|
||||
|
@ -48,7 +48,8 @@ struct LockedInput : LockedInputs
|
|||
{
|
||||
return
|
||||
ref == other.ref
|
||||
&& narHash == other.narHash
|
||||
&& originalRef == other.originalRef
|
||||
&& info == other.info
|
||||
&& inputs == other.inputs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue