Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notify-desktop package added improved code synopsis
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters