nixBuild: Respect the preHook/postHook of the caller