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

notify-desktop: init at 0.2.0 #30747

Closed
wants to merge 1 commit into from

Conversation

ylwghst
Copy link
Contributor

@ylwghst ylwghst commented Oct 24, 2017

Motivation for this change

I'm customizing a WM and I needed to test out some UI functionality this kind of utility, but there wasn't
any available in the nixpkgs repository.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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 nox --run "nox-review wip"
  • [+] Tested execution of all binary files (usually in ./result/bin/)
  • [+] Fits CONTRIBUTING.md.

longDescription = "It's basically clone of notify-send from libnotify, but it supports reusing notifications on screen by passing its ID. It also does not use any external dependencies (except from libdbus of course).";
homepage = "https://github.com/nowrep/notify-desktop";
license = licenses.gpl2;
platforms = platforms.all;
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be platforms.linux because of dbus.

Copy link
Contributor Author

@ylwghst ylwghst Oct 24, 2017

Choose a reason for hiding this comment

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

Dbus it's not part of macos however it can run on macos too.
The dbus packages has platforms.unix
I actually don't know if dbus can be successfully built with nix on macos.

buildInputs = [ dbus pkgconfig ];

installPhase = ''mkdir -p $out/bin
install -m 755 bin/notify-desktop $out/bin/notify-desktop'';
Copy link
Member

Choose a reason for hiding this comment

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

With '' strings, please format as follows:

installPhase = ''
  foo
  bar
  baz
'';

@NixOS NixOS deleted a comment from GrahamcOfBorg Oct 24, 2017
@grahamc
Copy link
Member

grahamc commented Oct 24, 2017

@GrahamcOfBorg notify-desktop

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

/nix/store/4pn9j5p4v8lx02ps20wch45nqsd7paq9-notify-desktop

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

/nix/store/4pn9j5p4v8lx02ps20wch45nqsd7paq9-notify-desktop


meta = with stdenv.lib; {
description = "Little application that lets you send desktop notifications with one command.";
longDescription = "It's basically clone of notify-send from libnotify, but it supports reusing notifications on screen by passing its ID. It also does not use any external dependencies (except from libdbus of course).";
Copy link
Member

Choose a reason for hiding this comment

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

Please split into multiple lines, e.g.

longDescription = ''
  It's basically clone of notify-send from libnotify, but it
  supports reusing notifications on screen by passing its ID. It
  also does not use any external dependencies (except from libdbus
  of course).
'';

install -m 755 bin/notify-desktop $out/bin/notify-desktop'';

meta = with stdenv.lib; {
description = "Little application that lets you send desktop notifications with one command.";
Copy link
Member

Choose a reason for hiding this comment

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

Remove period from end of description. See 8.1. Standard meta-attributes.

@rycee
Copy link
Member

rycee commented Oct 24, 2017

Looks good to me now but please squash the two commits into a single one having the commit message "notify-desktop: init at 0.2.0".

notify-desktop package added

improved code synopsis
@ylwghst ylwghst closed this Oct 24, 2017
@ylwghst ylwghst deleted the submit/notify-desktop branch October 24, 2017 12:25
@ylwghst ylwghst restored the submit/notify-desktop branch October 24, 2017 13:04
@ylwghst ylwghst deleted the submit/notify-desktop branch October 24, 2017 13:13
@ylwghst
Copy link
Contributor Author

ylwghst commented Oct 24, 2017

I just renamed the branch.

@rycee
Copy link
Member

rycee commented Oct 24, 2017

Renaming a branch after opening a PR is not very good. Please open a new PR for the new branch and refer back to this PR.

@ylwghst
Copy link
Contributor Author

ylwghst commented Oct 24, 2017

Sorry for that. It's my first build. I just want to have it it better organized for future tasks.
The new PR is up with #30761.

@rycee
Copy link
Member

rycee commented Oct 24, 2017

No problems. Mainly good to know for the future. In any case, your commit is now in master. Thanks for the submission! :-)

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

5 participants