I am creating a simple post-build-hook for Cabal. The problem comes when I try to work in a sandbox. My hook is expecting the compiled code under:
dist/something
but when the build happens inside a sandbox the path becomes:
dist/dist-sandbox-xxxxxxxx/something
How can I pass or let know to my hook the current used dist-sandbox
path?