-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
libcaca: make x11 optional, disabled on darwin #57687
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
Conversation
cacaclock binary fails because it can't find the font, but I guess it isn't related to this change. |
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.
I built this on NixOS and ran the cacademo, cacaview, and cacafire binaries successfully 👍. Just a few minor details to cleanup.
(if x11Support then "--enable-x11" else "--disable-x11") | ||
]; | ||
|
||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (!x11Support) "-DX_DISPLAY_MISSING"; |
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.
I didn't check the libcaca docs but wanted to make double check just to be sure... explicitly defining X_DISPLAY_MISSING
is still required even after passing --enable-x11
to the configure flags?
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.
IIRC the code that checks the define is in imlib2
. Is there something like a propagatedCPPFlags
? I guess it would be cleaner if imlib2-nox
propagated that define.
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.
Without digging into that much deeper I'm happy with that answer then. Thanks!
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.
LGTM 👍
@LnL7 @the-kenny as the 2 most recent people to merge commits for this package are you interested in merging this PR? |
@GrahamcOfBorg build libcaca |
Motivation for this change
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)