-
Notifications
You must be signed in to change notification settings - Fork 240
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
error related to cross compiling postgresql on musl64 #782
Comments
I think you worked this out, but the earlier errors were errors in cross-compiling non-Haskell packages, and not necessarily anything to do with The last one is, however. I think what's going on here is:
So: should we be providing such things as native build inputs too? I'm not sure in general, but in this case I think that library simply will not cross compile correctly: if you look at what it does with I'm not actually sure how to make |
FWIW, I got past the https://github.com/wedens/yesod-cross-test-pg/blob/master/nix/default.nix |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using pinned haskell.nix revision ba24c3d, lts-16.6, and in my example repo at commit 1b1e71 I'm getting an error related to cross compiling postgresql on musl64.
Full Logs
static-attempt.nix:
default.nix:
Almost certainly related to nh2/static-haskell-nix#57, even though this example using libpq and postgresql-simple compiles for some reason... lot to digest in there so not sure why yet.
Maybe this being fixed generally is at least soft-blocked on haskell/cabal#6935?
This comment give a solution where the key is:
So now I just have to figure out:
--libs libpq
in the haskell.nix worldEdit: Pretty sure I was bit by NixOS/nixpkgs#61580 and need:
Oh, the proposed syntax was merged in... so maybe:
Nope... guess I need an overlay or I'm overriding the wrong postgres?
Next step is figuring out how to append my own overlays to haskellNix.nixpkgsArgs.overlays.
Hooray:
This got me to a new runtime error I read about a solution for in Beginner’s guide to cross compilation in Nixpkgs:
Leaving off at that error in this tree.
The text was updated successfully, but these errors were encountered: