1
0
Fork 0
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:
Eelco Dolstra 2020-04-02 19:04:33 +02:00
parent 78ad5b3d91
commit a6ff66b658
6 changed files with 12 additions and 9 deletions

View file

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