I'm failing to use an overlay with requireFile

Interesting… I just read a discussion about how rec and overrideAttrs sometimes act weird: Avoid rec expresions in nixpkgs?

How about using src = super.fetchurl { url = "file:///...." }; Or perhaps you can even use the builtin: filterSource: Introduction - Nix Reference Manual