mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +01: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 GitHubInput : 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