-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
nix build working on aarch64-darwin #936
Comments
@samrose The link appears to be broken due to Nix code being removed in pgcentralfoundation/pgrx#1682. The last valid reference to |
@garrettmichaelgeorge thanks. I actually think my theory above was wrong, and that the issue is simply referencing the correct sdk paths when Probably I will be able to dig into this later next week |
Yes, it would. I can't merge a PR that's supposedly for the benefit of the Nix community if the Nix community has no feedback on it. |
@workingjubilee I'll look over there as soon as I can In recent efforts to push this forward I also found https://github.com/NixOS/nixpkgs/pull/294504/files which is a PR to nixpkgs that is related to a lot of the issues that I had in getting our supabase nix work to successfully build on |
Nice! Yeah, a lot of nix-darwin is kinda... jank. |
#1076 closes |
Chore
Currently the nix portion of this project will not build directly/natively on darwin (but will build if you configure a remote vm or physical machine builder).
It's not critical that the nix portion of this project build on aarch64-darwin today, as our targets are aarch64-linux and x86_64-linux however for people in the organization or open source users to work with the nix portions of this project, it could be optimal to be able to build it on aarch64-darwin
The current known limitations seem to be rooted in https://github.com/pgcentralfoundation/pgrx/blob/develop/flake.nix while it tries to support the system https://github.com/pgcentralfoundation/pgrx/blob/develop/flake.nix#L16
...it might lack the needed ld linking to xcode -sourced libs when building on aarch64-darwin https://github.com/pgcentralfoundation/pgrx/blob/develop/flake.nix#L98 which is usually something like
So, this task is to try and either upstream that solution, or override locally, and possibly tease out other issues beyond that, so that users can opt to build natively in aarch64-darwin
In order to maintain this, we would also need to set up a macos builder as well (which is another task)
The text was updated successfully, but these errors were encountered: