mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Respect the narHash attribute in more input types
call-flake.nix now passes node.info.narHash to fetchTree. This ensures that dirty Git trees work even in pure mode.
This commit is contained in:
parent
78ad5b3d91
commit
a6ff66b658
6 changed files with 12 additions and 9 deletions
|
@ -33,7 +33,7 @@ struct MercurialInput : Input
|
|||
|
||||
bool isImmutable() const override
|
||||
{
|
||||
return (bool) rev;
|
||||
return (bool) rev || narHash;
|
||||
}
|
||||
|
||||
std::optional<std::string> getRef() const override { return ref; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue