I am afraid that there several non resolved issues/prs in cabal about paths: haskell/cabal#2771 haskell/cabal#4661 haskell/cabal#3850 haskell/cabal#4220 ... Included a comment that suggests that it could live in show-build-info (although afaik it is not in the last @fendor pr)