1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 05:01:48 +02:00
This commit is contained in:
Eelco Dolstra 2020-02-02 11:31:58 +01:00
parent b270869466
commit 958ec5de56
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
6 changed files with 19 additions and 29 deletions

View file

@ -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; }