-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
blackbox-terminal: support sixel #248682
blackbox-terminal: support sixel #248682
Conversation
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.
Result of nixpkgs-review pr 248682
run on x86_64-linux 1
1 package built:
- blackbox-terminal
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1080 |
@@ -62,7 +63,17 @@ stdenv.mkDerivation rec { | |||
]; | |||
buildInputs = [ | |||
gtk4 | |||
vte-gtk4 | |||
(vte-gtk4.overrideAttrs (old: { |
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.
should this be added do vte-gtk4 as an option ?
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.
Not sure if it makes sense but added 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.
sorry, that's not what I meant
I was suggesting to add sixel option to vte-gtk4
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.
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.
thank you for the link, after reading more about
- blackbox still consider sixel experimental
- blackbox doesn't require unstable vte https://gitlab.gnome.org/raggesilver/blackbox/-/blob/main/src/meson.build?ref_type=heads#L45
I feel like blackbox should keep using stable vte.
usually it would be ok for have an optional feature, but the fact that it requires different version of vte sound like bad idea.
maybe someone is willing to maintain patches against stable version of vte ?
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.
Yes, we shouldn't wait until stable vte supports sixel. We just need to build blackbox against the vte version choosed by the blackbox dev.
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.
haha I am so sorry for typo :-), please read previous post again
https://gitlab.gnome.org/raggesilver/blackbox/-/issues/273#note_1768201
as per that comment, only Flatpack is built with that version, and if people start reporting sixel issues to vte then sixel will be removed from blackbox
clear indication that it's too early to ship it in nixpkgs
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.
only Flatpack is built with that version
IIUC, only Flatpak version is built with sixel support because the blackbox dev can only control that. And other distros can't use a different version of vte only for blackbox. In nixpkgs we don't need to ship it globally. We only ship it to blackbox users behind an experiment option. It's the choice of upstream.
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.
ok. with this in mind
how about ?
- make blackbox-terminal always use version of vte that's listed in Flatpack
- make sixel support optional flag, that's disabled by default
- need approval from blackbox-terminal maintainer
EDIT: disclaimer this comes with higher chance of blackbox-terminal build fails when vte derivation changes
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 flipped the option.
@@ -62,7 +64,17 @@ stdenv.mkDerivation rec { | |||
]; | |||
buildInputs = [ | |||
gtk4 | |||
vte-gtk4 | |||
(vte-gtk4.overrideAttrs (old: lib.optionalAttrs sixelSupport { |
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.
option should not affect src, but only sixel support
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.
You mean we should always use the same src?
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.
make blackbox-terminal always use version of vte that's listed in Flatpack make sixel support optional flag, that's disabled by default need approval from blackbox-terminal maintainer
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.
@linsui appreciate you patience.
@chuangzhu can you have a look at recent changes ?
I don't have a strong opinion against this.
@linsui maybe add yourself as a maintainer and help tracking it? |
No problem, added. |
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.
Your last commit is not associated with your Github account.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/1210 |
Can we get this merged ? |
Description of changes
Use the same VTE as upstream for sixel support.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)