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