Changes to unrelated files cause rebuilds, especially when the package is at the root of the repo, where non-package files have no other place to go.
Some solutions:
a. parse the cabal file in Nix: no experimental features required, but somewhat hard to get right, not future proof
b. or use ca-derivations with buildFromSdist or buildFromCabalSdist (NixOS/nixpkgs#174176)
Changes to unrelated files cause rebuilds, especially when the package is at the root of the repo, where non-package files have no other place to go.
Some solutions:
a. parse the cabal file in Nix: no experimental features required, but somewhat hard to get right, not future proof
b. or use ca-derivations with buildFromSdist or buildFromCabalSdist (NixOS/nixpkgs#174176)