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
gtk3: add x11Support for darwin #44630
Conversation
pkgs/top-level/all-packages.nix
Outdated
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; | ||
}; | ||
|
||
gtk3-x11 = gtk3.override { |
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 a use case, I don't think we need to add this here. Packages depending on GTK shouldn't care what backend it has.
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.
Well vim fails without x11 and this hurts discoverability, I only knew about this because nix-locate found a header in gtk2-x11. But I removed it for now.
@@ -36,12 +37,12 @@ stdenv.mkDerivation rec { | |||
}) | |||
]; | |||
|
|||
buildInputs = [ libxkbcommon epoxy json-glib ]; | |||
buildInputs = [ libxkbcommon epoxy json-glib ] | |||
++ optionals stdenv.isDarwin [ AppKit Cocoa ]; |
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.
Do you need this with x11? We might want something like withQuartz
or similar to provide here.
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 should probably be propagated here. Looks like it's causing newly failing:
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.
My bad, I forgot that didn't test the dependent packages yet. Because frameworks are impure they shouldn't be propagated unless there's a good reason to do so. Which is only Cocoa
in this case. 90b9916...ac95ddb
Success on x86_64-linux (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: at-spi2-atk, at-spi2-core, gtk3 Partial log (click to expand)
|
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)