2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, dbus, pkg-config }:
|
2017-10-24 01:57:58 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "notify-desktop";
|
2017-10-24 01:57:58 +01:00
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nowrep";
|
|
|
|
repo = "notify-desktop";
|
|
|
|
rev = "9863919fb4ce7820810ac14a09a46ee73c3d56cc";
|
|
|
|
sha256 = "1brcvl2fx0yzxj9mc8hzfl32zdka1f1bxpzsclcsjplyakyinr1a";
|
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
buildInputs = [ dbus pkg-config ];
|
2017-10-24 01:57:58 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m 755 bin/notify-desktop $out/bin/notify-desktop
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-24 01:57:58 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|