-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
chatterino2: unstable-2019-05-11 -> 2.1.7 #79073
Conversation
That's totally reasonable. Unfortunately |
This comment has been minimized.
This comment has been minimized.
|
This PR is ready to be merged. |
Any reason this one should be merged over #77994? |
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'd like to ask that you format the file (insert newlines, etc) so that it is easier to look at. It doesn't really matter, but comparing the two PRs, I myself would merge the other one solely because it's easier on the eyes.
Do note that I don't have the power to enforce this; it's just personal preference. Feel free to ignore the suggestion.
pkgs/applications/networking/instant-messengers/chatterino2/default.nix
Outdated
Show resolved
Hide resolved
meta = with lib; { | ||
description = "A chat client for Twitch chat"; | ||
longDescription = '' | ||
Chatterino is a chat client for Twitch chat. It aims to be an | ||
improved/extended version of the Twitch web chat. Chatterino 2 is | ||
the second installment of the Twitch chat client series | ||
"Chatterino". | ||
''; | ||
''; | ||
homepage = "https://github.com/fourtf/chatterino2"; |
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.
homepage = "https://github.com/fourtf/chatterino2"; | |
homepage = "https://github.com/Chatterino/chatterino2"; |
pkgs/applications/networking/instant-messengers/chatterino2/default.nix
Outdated
Show resolved
Hide resolved
fetchSubmodules = true; | ||
}; | ||
nativeBuildInputs = [ qmake pkgconfig ]; | ||
nativeBuildInputs = [ qmake pkgconfig wrapQtAppsHook ]; | ||
patches = lib.optionals stdenv.isDarwin [ ./darwin-frameworks.patch ]; |
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.
Could you add a comment about why this is necessary, and why it can't be upstreamed?
|
||
mkDerivation rec { | ||
pname = "chatterino2"; | ||
version = "unstable-2019-05-11"; | ||
version = "2.1.7"; | ||
src = fetchFromGitHub { | ||
owner = "fourtf"; |
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.
owner = "fourtf"; | |
owner = "Chatterino"; |
To clarify: the following commits have already been merged and shouldn't be part of this PR:
This PR only introduces the following commits:
GitHub's UI is misleading about what commits are part of this PR. I tried to fix this PR, but GitHub gave me server errors... |
I managed to fix this PR by changing the base to |
You probably need to force-push. Also, I think it would be better to just have the "fix formatting" commit squashed into the actual version bump. The only difference is two spaces... |
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.
Eval is failing for unrelated reasons (see: #81325), so rest assured it's not your fault :)
The docs say "if", not "iff".
wrapQtAppsHook was discussed in PR #79067. Regardless, the presence or absence of wrapQtAppsHook is unrelated to this PR (#79073). This PR is about upgrading chatterino2, not fixing style [1] or other issues in chatterino2's .nix file. [1] The whitespace change isn't worth its own PR, so it came along for the ride here. |
You're right. I just figured "since you're already here, it might be nice to make the file more readable." I overlooked your conversation about the presence of After my prevoius review comments get addressed -- leaving a comment why the patch is necessary and changing the repo owner from |
Upgrade chatterino2 to the latest release version. This commit changes the name of the chatterino2 package. Before this commit, the package is named chatterino2-unstable. After this commit, the package is named chatterino2. If a user wants to upgrade, they must first uninstall chatterino2-unstable before installing chatterino2, else there will be a conflict: $ nix-env -iA nixpkgs.chatterino2 installing 'chatterino2-2.1.7' building '/nix/store/hxx0vriblvvlkskcnm4rk32d2ghlvkj5-user-environment.drv'... error: packages '/nix/store/icgg81lkh1z17zbzw7ncrfqnkhlb39x9-chatterino2-2.1.7/Applications/chatterino.app/Contents/Info.plist' and '/nix/store/65wapk4pd5gj8dgvd245fzv4z799cnw8-chatterino2-unstable-2019-05-11/Applications/chatterino.app/Contents/Info.plist' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority) builder for '/nix/store/hxx0vriblvvlkskcnm4rk32d2ghlvkj5-user-environment.drv' failed with exit code 1 error: build of '/nix/store/hxx0vriblvvlkskcnm4rk32d2ghlvkj5-user-environment.drv' failed $ nix-env -q | grep chatterino2 chatterino2-unstable-2019-05-11 $ # chatterino2-unstable conflicts with chatterino2; both can't be $ # installed at the same time. Uninstall chatterino2-unstable, then $ # try installing chatterino2 again: $ nix-env -e chatterino2-unstable uninstalling 'chatterino2-unstable-2019-05-11' $ nix-env -iA nixpkgs.chatterino2 installing 'chatterino2-2.1.7' $ nix-env -q | grep chatterino2 chatterino2-2.1.7
On GitHub, chatterino2 moved from https://github.com/fourtf/chatterino2 to https://github.com/Chatterino/chatterino2. The old URL redirects to the new URL, but update Nixpkgs' source URL and homepage to point to the new URL to reduce confusion.
@cole-h I found that chatterino2's upstream had a patch for qtkeychain, so I used that patch. Also, I updated the GitHub URL as you requested. |
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, thanks. Connects to Twitch chat and lets me interact as expected.
[3 built, 0.0 MiB DL]
https://github.com/NixOS/nixpkgs/pull/79073
1 package built:
chatterino2
@@ -0,0 +1,27 @@ | |||
Fix build on macOS. |
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.
Slight nit: the comment about the patch should go above the patch in the derivation, not inside the patch itself. The first place people look (or at least, the first place I look) for the reasoning behind a patch is in the derivation itself.
superseded by a11a629 |
Upgrade chatterino2 to the latest release version.
This commit changes the name of the chatterino2 package. Before this commit, the package is named chatterino2-unstable. After this commit, the package is named chatterino2. If a user wants to upgrade, they must first uninstall chatterino2-unstable before installing chatterino2, else there will be a conflict:
Motivation for this change
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)