Overlay, buildGoModule, overrideAttrs, version overrides

Thanks for posting your learnings in a searchable space. You’ve definitely helped me out.

In some cases, if you’re writing a nix.flake, I think you can get away with removing prev.lib.fakeHash from src.sha256 by instead declaring it as an input (so the hash ends up in flake.lock). vendorSha256, however, seems to be necessary.

Most of this gist is focused on a separate problem, but it shows the structure I’m referring to: > go: -mod may only be set to readonly when in workspace mode, but it is set to "vendor" · GitHub