btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / no / notify-desktop / package.nix
blobe1118022edff4bd7131e88ff514e1a9747686e66
1 { lib, stdenv, fetchFromGitHub, dbus, pkg-config }:
3 stdenv.mkDerivation {
4   pname = "notify-desktop";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "nowrep";
9     repo = "notify-desktop";
10     rev = "9863919fb4ce7820810ac14a09a46ee73c3d56cc";
11     sha256 = "1brcvl2fx0yzxj9mc8hzfl32zdka1f1bxpzsclcsjplyakyinr1a";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ dbus ];
17   installPhase = ''
18     mkdir -p $out/bin
19     install -m 755 bin/notify-desktop $out/bin/notify-desktop
20   '';
22   meta = with lib; {
23     description = "Little application that lets you send desktop notifications with one command";
24     longDescription = ''
25       It's basically clone of notify-send from libnotify,
26       but it supports reusing notifications on screen by passing its ID.
27       It also does not use any external dependencies (except from libdbus of course).
28     '';
29     homepage = "https://github.com/nowrep/notify-desktop";
30     license = licenses.gpl2Plus;
31     platforms = platforms.unix;
32     maintainers = with maintainers; [ ylwghst ];
33     mainProgram = "notify-desktop";
34   };