From 646a77739b23425cc17126714992d14626222b56 Mon Sep 17 00:00:00 2001 From: Yellow Ghost Date: Tue, 24 Oct 2017 02:57:58 +0200 Subject: [PATCH] notify-desktop: init at 0.2.0 notify-desktop package added improved code synopsis --- lib/maintainers.nix | 1 + pkgs/tools/misc/notify-desktop/default.nix | 33 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/tools/misc/notify-desktop/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index a44dc3d4da0..6a6dc1fe336 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -674,6 +674,7 @@ xwvvvvwx = "David Terry "; yarr = "Dmitry V. "; yegortimoshenko = "Yegor Timoshenko "; + ylwghst = "Burim Augustin Berisa "; yochai = "Yochai "; yorickvp = "Yorick van Pelt "; yuriaisaka = "Yuri Aisaka "; diff --git a/pkgs/tools/misc/notify-desktop/default.nix b/pkgs/tools/misc/notify-desktop/default.nix new file mode 100644 index 00000000000..661f4f4f435 --- /dev/null +++ b/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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1d5a5ae30c..046d5035319 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };