2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, dbus, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "notify-desktop";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nowrep";
|
|
|
|
repo = "notify-desktop";
|
|
|
|
rev = "9863919fb4ce7820810ac14a09a46ee73c3d56cc";
|
|
|
|
sha256 = "1brcvl2fx0yzxj9mc8hzfl32zdka1f1bxpzsclcsjplyakyinr1a";
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ dbus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m 755 bin/notify-desktop $out/bin/notify-desktop
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00: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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ ylwghst ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "notify-desktop";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|