1{ lib
2, stdenv
3, fetchFromGitHub
4, meson
5, ninja
6, pkg-config
7, vala
8, gtk3
9, glib
10, gtk-layer-shell
11, dbus
12, dbus-glib
13, librsvg
14, gobject-introspection
15, gdk-pixbuf
16, wrapGAppsHook
17, pamixer
18, brightnessctl
19}:
20
21stdenv.mkDerivation rec {
22 pname = "avizo";
23 version = "1.2.1";
24
25 src = fetchFromGitHub {
26 owner = "misterdanb";
27 repo = "avizo";
28 rev = version;
29 sha256 = "sha256-ainU4nXWFp1udVujPHZUeWIfJE4RrjU1hn9J17UuuzU=";
30 };
31
32 nativeBuildInputs = [ meson ninja pkg-config vala gobject-introspection wrapGAppsHook ];
33
34 buildInputs = [ dbus dbus-glib gdk-pixbuf glib gtk-layer-shell gtk3 librsvg ];
35
36 postInstall = ''
37 wrapProgram $out/bin/volumectl --suffix PATH : $out/bin:${lib.makeBinPath ([ pamixer ])}
38 wrapProgram $out/bin/lightctl --suffix PATH : $out/bin:${lib.makeBinPath ([ brightnessctl ])}
39 '';
40
41 meta = with lib; {
42 description = "A neat notification daemon for Wayland";
43 homepage = "https://github.com/misterdanb/avizo";
44 license = licenses.gpl3;
45 platforms = platforms.linux;
46 maintainers = [ maintainers.berbiche ];
47 };
48}