Skip to content

Commit

Permalink
notify-desktop: init at 0.2.0
Browse files Browse the repository at this point in the history
notify-desktop package added

improved code synopsis
  • Loading branch information
ylwghst authored and rycee committed Oct 24, 2017
1 parent 322fa6b commit 646a777
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -674,6 +674,7 @@
xwvvvvwx = "David Terry <davidterry@posteo.de>";
yarr = "Dmitry V. <savraz@gmail.com>";
yegortimoshenko = "Yegor Timoshenko <yegortimoshenko@gmail.com>";
ylwghst = "Burim Augustin Berisa <ylwghst@onionmail.info>";
yochai = "Yochai <yochai@titat.info>";
yorickvp = "Yorick van Pelt <yorickvanpelt@gmail.com>";
yuriaisaka = "Yuri Aisaka <yuri.aisaka+nix@gmail.com>";
Expand Down
33 changes: 33 additions & 0 deletions pkgs/tools/misc/notify-desktop/default.nix
@@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, dbus, pkgconfig }:

stdenv.mkDerivation rec {
name = "notify-desktop";
version = "0.2.0";

src = fetchFromGitHub {
owner = "nowrep";
repo = "notify-desktop";
rev = "9863919fb4ce7820810ac14a09a46ee73c3d56cc";
sha256 = "1brcvl2fx0yzxj9mc8hzfl32zdka1f1bxpzsclcsjplyakyinr1a";
};

buildInputs = [ dbus pkgconfig ];

installPhase = ''
mkdir -p $out/bin
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";
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.unix;
maintainers = with maintainers; [ ylwghst ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -3572,6 +3572,8 @@ with pkgs;

nixbot = callPackage ../tools/misc/nixbot {};

notify-desktop = callPackage ../tools/misc/notify-desktop {};

nkf = callPackage ../tools/text/nkf {};

nlopt = callPackage ../development/libraries/nlopt { octave = null; };
Expand Down

0 comments on commit 646a777

Please sign in to comment.