mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02:00
Cleanup
This commit is contained in:
parent
b270869466
commit
958ec5de56
6 changed files with 19 additions and 29 deletions
|
@ -33,8 +33,12 @@ struct Input : std::enable_shared_from_this<Input>
|
|||
|
||||
virtual bool operator ==(const Input & other) const { return false; }
|
||||
|
||||
/* Check whether this is a "direct" input, that is, not
|
||||
one that goes through a registry. */
|
||||
virtual bool isDirect() const { return true; }
|
||||
|
||||
/* Check whether this is an "immutable" input, that is,
|
||||
one that contains a commit hash or content hash. */
|
||||
virtual bool isImmutable() const { return (bool) narHash; }
|
||||
|
||||
virtual bool contains(const Input & other) const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue