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

Move away from static-haskell-nix #2478

Closed
robx opened this issue Sep 19, 2022 · 3 comments · Fixed by #3169
Closed

Move away from static-haskell-nix #2478

robx opened this issue Sep 19, 2022 · 3 comments · Fixed by #3169

Comments

@robx
Copy link
Contributor

robx commented Sep 19, 2022

We currently build a static PostgREST executable using https://github.com/nh2/static-haskell-nix. I think we should try moving away from that because

  • the project appears to be abandoned
  • the dependency makes it very difficult to upgrade nixpkgs

(This isn't really a new idea, I just wanted to file a central issue for tracking this.)

Some references:

@robx robx mentioned this issue Sep 19, 2022
@robx
Copy link
Contributor Author

robx commented Sep 19, 2022

I've done a bit of digging into pkgs.pkgsStatic today:

It looks like pkgsStatic goes quite a bit further than what we need to build a static PostgREST -- it builds a fully static package set, so it requires all PostgREST dependencies to build in a fully static environment, while all we need is the static build artifacts of all dependencies. E.g., this builds postgresql in an environment where only static libraries exist, which the build system seems not prepared for. We only need dontDisableStatic = true for our dependencies.

@benz0li
Copy link

benz0li commented Aug 15, 2023

The glcr.b-data.ch/ghc/ghc-musl images may be an alternative.
👉 https://github.com/benz0li/ghc-musl

@robx
Copy link
Contributor Author

robx commented Sep 15, 2023

static-haskell-nix has recently seen some work again, with an update to nixos-23.05: nh2/static-haskell-nix#116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants