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
mpv: enable sixel support #104865
mpv: enable sixel support #104865
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.
Looks good. One little nitpick below.
@@ -45,6 +45,7 @@ | |||
, swiftSupport ? false, swift ? null | |||
, theoraSupport ? true, libtheora ? null | |||
, vaapiSupport ? stdenv.isLinux, libva ? null | |||
, sixelSupport ? true, libsixel ? null |
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.
To keep the list sorted, we could put this a few lines above, just below sdl2Support
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 would like to disable sixelSupport by default cause not every terminal supports and some like Kitty even do a better job themselves.
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.
@SuperSandro2000 I'm actually wondering if we want to provide a second package (e.g. mpvFull
) that has all features enabled for people who don't care about size etc., but about having all features. Something similar happens e.g. with diffoscope
, curl
or python
. Just grep for e.g. Full
on all-packages.nix
to get a few more examples.
@prusnak while I appreciate everyone who invests free time in helping out maintaining nixpkgs
, I'd like to mention here that I'm not a big fan of those low-impact nitpicks that don't really have an actual benefit and can be taken up by either a tool or the next time someone touches the package. You may have noticed that we had several policy discussions in the past regarding the contribution process and one of the issues a lot of people have is that our PR queue is steadily growing and a lot of PRs stall because of that. Feel free to disagree (I mean, I want to mention it here, but I don't intend to speak speak for the project and there's no actual policy around that), but I think that those sort of reviews kind of help slowing down the merge process.
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.
@prusnak Reordered the lines
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 would like to disable sixelSupport by default cause not every terminal supports and some like Kitty even do a better job themselves.
I tested Kitty 0.19.0 (with no user configuration) and mpv's sixel output didn't work with it ¯\_(ツ)_/¯
Result of 1 package failed to build:
16 packages built:
mpc-qr is already broken on master. Sending a PR to fix that. |
Result of 2 packages marked as broken and skipped:
1 package failed to build:
7 packages built:
mpc-qt failure is mac related and does not block this PR. |
Defaulted |
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, LGTBorg.
Motivation for this change
The newest release of mpv added support for sixel output.
Test:
Tested using a 4K 60fps video from YouTube.
Closure:
/nix/store/xbxpclh4pbvx5is95935y9vhnvdbky7b-mpv-with-scripts-0.33.0 426.6M
/nix/store/iddyc4azrdd334lkiilmmpmc48fb3qdv-mpv-with-scripts-0.33.0 427.2M
cc: @Ma27
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)