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
weechat-autojoin: init at 0.3.1; weechat-text-item: init at 0.9 #66786
Conversation
This should probably download the scripts using fetchurl rather than adding them verbatim into nixpkgs. |
I thought that downloading specific versions of these scripts was impossible—that you could only download the latest versions—but I was mistaken. I’ll update the PR tonight, hopefully. |
The text_item looks the same from both sources here. |
They weren’t the same when I opened this PR 😉 It turns out that all of the scripts on the WeeChat scripts site are stored in https://github.com/weechat/scripts, so I’m going to update these derivations to pull from there. |
82e5519
to
eedd0fb
Compare
This has been updated to use |
Could you perhaps factor out the common code to a |
eedd0fb
to
a27ead7
Compare
@jtojnar I created a mk-weechat-script.nix file that contains a function with all of the common code. If this seems like a good approach then I will add some documentation of how the function can be used. The way I’m injecting |
Why not just use |
deeb9d5
to
2346aac
Compare
@jtojnar Thanks for the pointers on IRC. I’ve updated this to be a little simpler. |
2346aac
to
9fc9c58
Compare
I’ve rebased this against the latest Nixpkgs master and I updated one of the scripts. |
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
I still think this is a useful change, but I don’t have the energy to shepherd it through the nixpkgs PR process so I’m going to close it. |
Motivation for this change
Adds two scripts to be used with the Weechat chat client:
These scripts come from the Weechat scripts site, which doesn’t seem to offer a way to download a specific version of a script—only the latest version. Therefore, I included the two scripts directly within Nixpkgs. They’re 6,703 bytes and 10,764 bytes. If anyone knows of a way to get specific versions from the Weechat site that would obviously be preferable. (The text_item script says that development is hosted at https://github.com/weechatter/weechat-scripts, but the Weechat site has a more recent version of the script than that repo does.)This problem is now fixed; the derivations just usefetchFromGitHub
like you’d expect.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @lovek323 @the-kenny @lheckemann @Ma27 (the maintainers of Weechat itself)