summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/misc/deadd-notification-center/default.nix
blob: 35627b28d1544e511a2ecbf93d0a2ac6989b6964 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, stdenv
, fetchFromGitHub
, autoPatchelfHook
, wrapGAppsHook
, hicolor-icon-theme
, gtk3
, gobject-introspection
, libxml2
}:
stdenv.mkDerivation rec {
  pname = "deadd-notification-center";
  version = "1.7.3";

  src = fetchFromGitHub {
    owner = "phuhl";
    repo = "linux_notification_center";
    rev = version;
    sha256 = "QaOLrtlhQyhMOirk6JO1yMGRrgycHmF9FAdKNbN2TRk=";
  };

  dontUnpack = true;

  nativeBuildInputs = [
    autoPatchelfHook
    wrapGAppsHook
  ];

  buildInputs = [
    gtk3
    gobject-introspection
    libxml2
    hicolor-icon-theme
  ];

  installPhase = ''
    mkdir -p $out/bin $out/share/dbus-1/services

    cp $src/.out/${pname} $out/bin/
    chmod +x $out/bin/${pname}

    sed "s|##PREFIX##|$out|g" $src/${pname}.service.in > \
      $out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
  '';

  meta = with lib; {
    description = "A haskell-written notification center for users that like a desktop with style";
    homepage = "https://github.com/phuhl/linux_notification_center";
    license = licenses.bsd3;
    maintainers = [ maintainers.pacman99 ];
    platforms = platforms.linux;
  };
}