aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/systembus-notify/default.nix
blob: 374adc6c89bfe4c6c6f25a2c8f720f58b2c63ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, systemd }:

stdenv.mkDerivation rec {
  pname = "systembus-notify";
  version = "1.1";

  src = fetchFromGitHub {
    owner = "rfjakob";
    repo = "systembus-notify";
    rev = "v${version}";
    sha256 = "1pdn45rfpwhrf20hs87qmk2j8sr7ab8161f81019wnypnb1q2fsv";
  };

  buildInputs = [ systemd ];

  installPhase = ''
    runHook preInstall
    install -Dm755 systembus-notify -t $out/bin
    install -Dm644 systembus-notify.desktop -t $out/etc/xdg/autostart
    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description = "System bus notification daemon";
    homepage = "https://github.com/rfjakob/systembus-notify";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [];
  };
}