In nixpkgs, pkg-config is prefixed in the cross case, so this would fail miserably:
https://github.com/hercules-ci/hercules-ci-agent/blob/master/cabal-pkg-config-version-hook/src/Distribution/PkgConfigVersionHook.hs#L154
We do already provide the correct pkg-config executable to Cabal via the --with-pkg-config flag, so it should be easily possible to obtain the correct program.
In nixpkgs,
pkg-configis prefixed in the cross case, so this would fail miserably:https://github.com/hercules-ci/hercules-ci-agent/blob/master/cabal-pkg-config-version-hook/src/Distribution/PkgConfigVersionHook.hs#L154
We do already provide the correct
pkg-configexecutable to Cabal via the--with-pkg-configflag, so it should be easily possible to obtain the correct program.