mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
parent
f58a9b0e62
commit
a6dfa3cb85
1 changed files with 16 additions and 0 deletions
|
@ -19,6 +19,22 @@ struct PathInput : Input
|
||||||
|
|
||||||
std::optional<Hash> getRev() const override { return rev; }
|
std::optional<Hash> getRev() const override { return rev; }
|
||||||
|
|
||||||
|
bool operator ==(const Input & other) const override
|
||||||
|
{
|
||||||
|
auto other2 = dynamic_cast<const PathInput *>(&other);
|
||||||
|
return
|
||||||
|
other2
|
||||||
|
&& path == other2->path
|
||||||
|
&& rev == other2->rev
|
||||||
|
&& revCount == other2->revCount
|
||||||
|
&& lastModified == other2->lastModified;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool isImmutable() const override
|
||||||
|
{
|
||||||
|
return (bool) narHash;
|
||||||
|
}
|
||||||
|
|
||||||
ParsedURL toURL() const override
|
ParsedURL toURL() const override
|
||||||
{
|
{
|
||||||
auto query = attrsToQuery(toAttrsInternal());
|
auto query = attrsToQuery(toAttrsInternal());
|
||||||
|
|
Loading…
Reference in a new issue