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
kotatogram-desktop: init at 1.1.5 #75210
Conversation
@GrahamcOfBorg build kotatogram-desktop libtgvoip rlottie-tdesktop |
It's better to split this into three commits, because there are three new packages added. Add them in the order of dependency -> dependent. |
Also, if you have a bit of spare time to maintain the packages, please add yourself as a maintainer of these packages. |
270bcbc
to
ff2a5e5
Compare
ff2a5e5
to
c837eb6
Compare
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
115a799
to
d5f0538
Compare
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 adds a lot of patches and files like CMakeLists.inj
. Can those be fetched from somewhere (e.g. the AUR)? AFAIK fetching patches is the preferred solution (keeps Nixpkgs cleaner, is easier to review, the source is obvious, etc.).
The rest seems ok from a quick look. Thanks for your contribution :)
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Show resolved
Hide resolved
d5f0538
to
7eacf24
Compare
No, preston significantly changed the directory tree in tdesktop v1.9.1, on which kotatogram-desktop v1.1.1 is based. I had to rewrite the patches almost from scratch (but I found a lot of unnecessary changes, most likely these patches were taken from flatpak - these changes are really needed there). The good news is that most patches will go away after 1-2 tdesktop/kotatogram updates (If they accept my PRs during this time). Moreover, preston migrates to cmake: https://github.com/telegramdesktop/tdesktop/tree/cmake |
7eacf24
to
e9ad3ed
Compare
e9ad3ed
to
f824182
Compare
Updated to k1.1.3 based on v1.9.4 |
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.
Seems a lot better now with way fewer patches :)
However, there are still quite a few patches left and I'm not sure what our policy is in such cases (personally I try to avoid it, but of course this isn't always possible). Might be a good idea to cc some very active PR reviewers, as they have way more experience with such cases than I have (e.g. @jonringer
and @worldofpeace
might be good fits). Or to mention this PR on Discourse, e.g. in this thread: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/.
A large portion of the custom patches where successfully dropped
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 feel like a lot of these patches could be upstreamed, and are not specific to nix
So I should remove them? |
By upstreaming I mean, theses could be submitted to the package repos themselves. Unless it's a nix-specific patch, then they should stay here. But many of these do not seem to be specific to NixOS/nixpkgs |
89e8765
to
7410799
Compare
Updated to k1.1.4 based on v1.9.7 and dropped all the patches |
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 pretty good to me now, added some recommendations but would like a second opinion, mainly regarding the naming in all-packages.nix
/ the additional two packages in general.
pkgs/top-level/all-packages.nix
Outdated
@@ -21416,6 +21416,12 @@ in | |||
''; | |||
tdesktop = qt5.callPackage ../applications/networking/instant-messengers/telegram/tdesktop { }; | |||
|
|||
kotatogram-desktop = qt5.callPackage ../applications/networking/instant-messengers/telegram/kotatogram-desktop { }; |
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.
The entries in this file should be sorted (roughly) alphabetically within the category (see comment at the beginning of the file).
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.
fixed
pkgs/top-level/all-packages.nix
Outdated
libtgvoip = callPackage ../development/libraries/libtgvoip { }; | ||
|
||
rlottie-tdesktop = callPackage ../development/libraries/rlottie-tdesktop { }; |
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 sure about the naming here as both packages are forks. Maybe tdesktop-libtgvoip
and tdesktop-rlottie
? Also it's a bit unfortunate that none of them provide stable releases. An alternative could e.g. be to move them into ../applications/networking/instant-messengers/telegram/
and don't add them to all-packages.nix
(i.e. directly import them in kotatogram-desktop
.
Any thoughts on this from other reviewers?
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.
libtgvoip upstream is dead and tdesktop's libtgvoip is the new upstream de-facto
I can enable bundling of rlottie
meta = { | ||
description = "VoIP library for Telegram clients"; | ||
longDescription = '' | ||
VoIP library for Telegram clients |
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 remove longDescription
if it's the same as description
.
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.
fixed
description = "Kotatogram – experimental Telegram Desktop fork"; | ||
longDescription = '' | ||
Unofficial desktop client for the Telegram messenger, based on Telegram Desktop. | ||
It contains some useful (or purely cosmetic) features, but they could be unstable. A detailed list is available here: https://kotatogram.github.io/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.
Optional: A line break would be nice 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.
fixed
@GrahamcOfBorg build kotatogram-desktop |
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Show resolved
Hide resolved
72b8ec8
to
381d917
Compare
@GrahamcOfBorg build kotatogram-desktop libtgvoip |
381d917
to
0b0a312
Compare
updated to k1.1.5 based on v1.9.8 |
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
0b0a312
to
11b04ca
Compare
11b04ca
to
5ef9982
Compare
pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix
Outdated
Show resolved
Hide resolved
5ef9982
to
b00cb91
Compare
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.
diff LGTM
application launches fine
[5 built, 88 copied (131.9 MiB), 24.3 MiB DL]
https://github.com/NixOS/nixpkgs/pull/75210
2 package built:
kotatogram-desktop libtgvoip
@GrahamcOfBorg build kotatogram-desktop libtgvoip |
aarch failure unrelated |
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)