Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql-libpq 0.10.2.0 or higher won't build - where's the fix go? #2281

Open
dten opened this issue Nov 12, 2024 · 0 comments
Open

postgresql-libpq 0.10.2.0 or higher won't build - where's the fix go? #2281

dten opened this issue Nov 12, 2024 · 0 comments

Comments

@dten
Copy link

dten commented Nov 12, 2024

More of a question really for now.

since this MR postgresql-libpq has significantly changed how they find/register their native libpq dependency and haskell.nix seemingly no longer can find it.

I have a workaround to use locally which is just fix it myself (thanks for this feature)

packages.postgresql-libpq-configure.components.library.libs = pkgs.lib.mkForce [ pkgs.postgresql ];

However it would be very nice if everything did work, and i'm a little lost, so i'm looking for advice on where the fix should be.

The original code simply used to have extra-libraries: pq in the cabal file - which i can see hackage.nix maps to a postgresql dependency.

the new version instead has a new package which (as i read it) uses a setup: Configure to register the dependency from within the configure file.

At a guess hackage.nix has no clue about the Configure step's desire to have libpq before it's too late - which makes me think that it should still be in the postgresql-libpq-configure.cabal's extra-libraries

@dten dten changed the title postgresql-libpq 0.10.2.0 or higher won't build - where's the fault lie? postgresql-libpq 0.10.2.0 or higher won't build - where's the fix go? Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant