-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
experiment: try using nix's pkgs.pkgsStatic for the static build #2332
Conversation
d1aa027
to
47f52b7
Compare
After rebasing, this is currently failing with:
This appears to be an issue linking We shouldn't actually need to build the postgresql backend statically, this is just happening because we need static |
What would it take to add cross-compilation support to this as per https://nix.dev/tutorials/cross-compilation? |
I'm not sure I understand what you're going for here, could you elaborate? (The issue #2478 collects some more info about the static build, might be the better place to discuss this.) |
There's some progress for packaging only libpq on nixpkgs: https://github.com/NixOS/nixpkgs/pull/234470/files Perhaps we could copy that expression into our repo? |
Closing in favor of #3169 |
pkgs.pkgsStatic on Linux is essentially what static-haskell-nix does, except it doesn't appear to deal with system libraries properly. But eventually this should obsolete static-haskell-nix, which seems unmaintained.