Reproducible way to cause NAR hash mismatches

Hi,

GitHub - dkuettel/hashes-main · GitHub is a way to reproduce a failure case I have often run into when a flake has as input another flake that itself has a submodule.

Following the steps in the readme gives me a NAR hash mismatch everytime. Can people confirm that this is happening, or do you maybe spot something stupid I’m doing? I’m using latest unstable nixos, but this reproducer has been working (ie, failing) for me since january 2027.

Where is the best place to report this if some can confirm it fails for them too?

Cheers, Daniel.

NixOS does not necessarily come with the latest version of Nix by default. Can you make sure you test with… perhaps nixVersions.git?

 => nix --version
nix (Nix) 2.34.9

What is nixVersion.git? Either way, the problem is quite stable since it worked for 10 months now on many different versions.