-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
mkchromecast: init at 0.3.8.1 #57033
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
LGTM! Thanks!
|
I haven't had much success in making notifications work. Someone has a minimal example that mimicks how it's done in |
Should've addressed the CR feedback now. Let me know if there's anything I need to change |
2f6a13c
to
8017502
Compare
|
||
format = "other"; | ||
|
||
# Relies on an old version (0.7.7) of PyChromecast unavailable 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.
If the application only works with a certain version of a dependency, you should pin the latter using packageOverrides
.
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.
That version isn't available in Nixpkgs at all and I assume packaging said old version is out of scope here – am I right to assume that?
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.
No need to package it separately, Just use packageOverrides
as is e.g. done in pkgs/applications/misc/khard/default.nix.
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.
Since "master is actually more stable and supports the latest PyChromecast as well", we should definitely override the PyChromecast version as long as we're using version 0.3.8.1.
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.
Would it benefit us when the tests aren't really useful here? Could we just do this for the one targeting master
?
pkgs/top-level/all-packages.nix
Outdated
alsaSupport = config.mkchromecast.alsaSupport or false; | ||
systemTray = config.mkchromecast.systemTray or true; | ||
ffmpegSupport = config.mkchromecast.ffmpegSupport or true; | ||
youtubeSupport = config.mkchromecast.youtubeSupport or true; |
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'm not very familiar with the config
system. However, I don't think these are useful as they can be achived using a simple 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.
Why did you just mark this as resolved?
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 did actually remove it, but some rebasing later it was back.
Pushed changes following most feedback above. |
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.
With all this custom stuff this package needs, I think we'd be better off just packaging a version of mkchromecast from their master branch.
How do we version/name a package based on a master branch? Do we add it to We could also mimic other packages by adding a |
We can just keep calling the attribute |
However, if using master turns out to be just as complicated, I think we can go with it as it is right now. |
I'm happy to go ahead with this PR, and then give packaging |
Alright, but you still have to change the version of PyChromecast used. |
8017502
to
770ad22
Compare
@dotlambda the tests here are actually I/O bound through testing an actual Chromecast Audio device ("CCA"), I don't think we want that, right? I've just added a further comment explaining why it's disabled. (sorry for the silly diff, relevant change is on line 52) |
Good to see this PR already being submitted. Looks very good :D master is actually more stable and supports the latest |
So can this PR be closed now as the package was already added? Any reason to keep it open @Shou? |
@aanderse it hasn't been merged yet, the above PR was closed. I'm just waiting for feedback here |
@Shou Ah sorry, misread. I was just trying to triage. @dotlambda seeing as you have had the most review on this PR is there anything outstanding from your perspective? Do you have any feedback for @Shou? |
@bobvanderlinden or @dtzWill Are either of you able to provide the requested feedback here? |
Command line for casting screen:
Might still be fine for now to init at 0.3.8.1 and hope that a new release will come soonish. EDIT: After installing ffmpeg into my path it works fine. What I find interesting is that my PR didn't have this problem. I also tried updating pychromecast to 3.2.0, but that resulted in the same exception. I guess this issue was resolved in master (compared to 0.3.8.1). For 0.3.8.1 I'd say adding ffmpeg to the propagated builds is required for this tool to work correctly. |
Thanks @bobvanderlinden! @Shou sound good? |
@aanderse @bobvanderlinden have done that now |
Thanks @Shou! @bobvanderlinden Hopefully you'll be able to test and merge this at some point... unfortunately I don't have the hardware available currently to do so. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Hello, I'm a bot and I thank you in the name of the community for your contributions. Nixpkgs is a busy repository, and unfortunately sometimes PRs get left behind for too long. Nevertheless, we'd like to help committers reach the PRs that are still important. This PR has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. If this is still important to you and you'd like to remove the stale label, we ask that you leave a comment. Your comment can be as simple as "still important to me". But there's a bit more you can do: If you received an approval by an unprivileged maintainer and you are just waiting for a merge, you can @ mention someone with merge permissions and ask them to help. You might be able to find someone relevant by using Git blame on the relevant files, or via GitHub's web interface. You can see if someone's a member of the nixpkgs-committers team, by hovering with the mouse over their username on the web interface, or by searching them directly on the list. If your PR wasn't reviewed at all, it might help to find someone who's perhaps a user of the package or module you are changing, or alternatively, ask once more for a review by the maintainer of the package/module this is about. If you don't know any, you can use Git blame on the relevant files, or GitHub's web interface to find someone who touched the relevant files in the past. If your PR has had reviews and nevertheless got stale, make sure you've responded to all of the reviewer's requests / questions. Usually when PR authors show responsibility and dedication, reviewers (privileged or not) show dedication as well. If you've pushed a change, it's possible the reviewer wasn't notified about your push via email, so you can always officially request them for a review, or just @ mention them and say you've addressed their comments. Lastly, you can always ask for help at our Discourse Forum, or more specifically, at this thread or at #nixos' IRC channel. |
It would be a shame of this wasn't merged. |
Tested this with my Chromecast Audio but ran into what appears to be this issue: muammar/mkchromecast#308. Seems like it's probably just an issue with |
ebe40a6
to
3d10184
Compare
3d10184
to
f6da38a
Compare
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)