-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix and CI static builds #3765
Fix and CI static builds #3765
Conversation
musl doesn't like this identifier
this is needed for static linking to work properly
this seems to break in Musl/Static with: terminate called after throwing an instance of 'std::bad_function_call' what(): bad_function_call
I guess I'll call it semi-wip, hah. It works, but it would be nice to accomplish some things differently. |
Also needs |
#3507 has a good explanation of why the getHome* changes are needed. |
Better to get creative than just sprinkle arbitrary underscores.
And remove one that we didn't actually need to add
Per the comments, the underlying issue is libarchive/libarchive#1446, knowing this allows the hack to be much more targetted.
@edolstra OK think this is finally cleaned up and ready! |
Ugh, tests failed because evidently the channel doesn't include NixOS/nixpkgs@9f5ba92 yet? Oh right, I got to bump the flake lock. |
Well, and now there are different problems: errors installing nix in the mac CI runner. :( |
68d5666
to
1d09923
Compare
BTW I noticed that the
which would be nice to get rid of to get a really minimal closure. |
We like static builds because we can use to make demos more self-contained and less spooky on systems without a regular installation of Nix.
There number of things that didn't work out of the box also makes us think CI would be a good idea. Static linking shouldn't be this invasive for most programs, but a few things have accumulated. Hopefully we can eventually fix them more elegantly by using a non-bespoke build system (that e.g. could use pkg-config private deps to figure out the right link order).