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
termite: Add support for macOS #43415
Conversation
@GrahamcOfBorg build termite |
Success on x86_64-linux (full log) Attempted: termite Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: termite Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: termite Partial log (click to expand)
|
|
||
postPatch = "sed '1i#include <math.h>' -i termite.cc"; | ||
patches = [ ./url_regexp_trailing.patch | ||
] ++ lib.optional stdenv.isDarwin ./fix_macos.patch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the addition of the <errno.h>
header conditional on using Darwin, please preserve the existing behavior :).
(I suppose either split up the patch or keep the sed line from before and use it unconditionally like we do now?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, in my tree I've had a copy of the math.h
sed that adds errno.h
-- I guess that didn't make it upstream?
Well my apologies about that, but would you be so kind as to add it unconditionally anyway? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in my new commit :)
Replace fetchgit with fetchFromGitHub now that it supports fetching submodules. Remove unnecessary postPatch to add <math.h> as termite already includes <cmath>. Add a patch to include <errno.h> on all platforms and remove the --as-needed flag from ld on macOS.
cf888f2
to
efe5815
Compare
@GrahamcOfBorg build termite |
Success on x86_64-darwin (full log) Attempted: termite Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: termite Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: termite Partial log (click to expand)
|
regarding the errno header patch: is this actually Nix related? Otherwise we should file a patch upstream right? |
@Ma27 I believe it's macOS related, I will file an upstream patch later and if it gets merged I'll remove the patch from Nixpkgs. |
Replace fetchgit with fetchFromGitHub now that it supports fetching
submodules. Remove unnecessary postPatch to add <math.h> as termite
already includes . Add a patch to include <errno.h> and remove
the --as-needed flag from ld on macOS.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)