Skip to content
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

purple-libnotify-plus: init at 2018-05-30, as well as dependency #65426

Closed
wants to merge 2 commits into from

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Jul 26, 2019

Motivation for this change

Message notifications!

Needs purple-events as well, which maybe should be added to plugin list
alongside purple-libnotify-plus in order to use this.

Doing so works, haven't tried only adding purple-libnotify-plus
(which might maybe possibly find or otherwise 'pull in'
purple-events).

In retrospect I probably could have just used notify-send{,.sh} and the
command-execute plugin or something :P but this seems to work without
the fiddling :).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides that all LGTM.


stdenv.mkDerivation rec {
pname = "purple-events";
version = "2017-08-25";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


stdenv.mkDerivation rec {
pname = "purple-libnotify-plus";
version = "2018-05-30";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configureFlags = [ "--with-purple-plugindir=${placeholder "out"}/lib/purple-2" ];

meta = with stdenv.lib; {
homepage = http://purple-libnotify-plus.sardemff7.net/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here: Although upstream uses this URL as it's website as in the GitHub repo description, it redirects to the GitHub page, implying perhaps we should use the following:

Suggested change
homepage = http://purple-libnotify-plus.sardemff7.net/;
homepage = "https://github.com/sardemff7/purple-libnotify-plus";

Note the quotes added.

configureFlags = [ "--with-purple-plugindir=${placeholder "out"}/lib/purple-2" ];

meta = with stdenv.lib; {
homepage = http://purple-events.sardemff7.net/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although upstream uses this URL as it's website as in the GitHub repo description, it gets redirected to the GitHub page, implying perhaps we should use the following:

Suggested change
homepage = http://purple-events.sardemff7.net/;
homepage = "https://github.com/sardemff7/purple-events";

Note the quotes added.

@doronbehar
Copy link
Contributor

What say you @dtzWill ?

@stale
Copy link

stale bot commented Nov 20, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 20, 2020
sha256 = "1mhg40swa12inkdhhxf6x9c45h2dijzvdlx1325zgvs2k1vv0a3k";
};

nativeBuildInputs = [ autoreconfHook pkgconfig intltool ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In new expressions, pkg-config should be used instead of the pkgconfig alias.

meta = with stdenv.lib; {
homepage = http://purple-events.sardemff7.net/;
description = "libpurple events handling plugin and library";
license = licenses.gpl3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gpl3 is unclear, use gpl3Plus or gpl3Only. See https://discourse.nixos.org/t/lib-licenses-gpl3-co-are-now-deprecated/8206 for more details.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 20, 2020
@SuperSandro2000
Copy link
Member

@dtzWill Can you please address the review comments? Otherwise I would close this PR.

meta = with stdenv.lib; {
homepage = http://purple-libnotify-plus.sardemff7.net/;
description = "Plugin to provide libnotify interface to Pidgin and Finch";
license = licenses.gpl3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus or Only?


configureFlags = [ "--with-purple-plugindir=${placeholder "out"}/lib/purple-2" ];

meta = with stdenv.lib; {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meta = with stdenv.lib; {
meta = with lib; {

sha256 = "0gh86dknzd064y2d8nck4p8r6ci23vwrlhgy1q75mmc0px94gz34";
};

nativeBuildInputs = [ autoreconfHook pkgconfig intltool ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [ autoreconfHook pkgconfig intltool ];
nativeBuildInputs = [ autoreconfHook pkg-config intltool ];


configureFlags = [ "--with-purple-plugindir=${placeholder "out"}/lib/purple-2" ];

meta = with stdenv.lib; {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meta = with stdenv.lib; {
meta = with lib; {

@SuperSandro2000
Copy link
Member

Closing due to unresponsive author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants