about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/rootbar/default.nix
blob: 41582e1b413c276c35023562f8a0bd081352c75b (plain) (blame)
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
{ lib, stdenv
, fetchhg
, pkg-config
, meson
, ninja
, gtk3
, json_c
, libpulseaudio
, wayland
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
  pname = "rootbar";
  version = "unstable-2020-11-13";

  src = fetchhg {
    url = "https://hg.sr.ht/~scoopta/rootbar";
    rev = "a018e10cfc5e";
    sha256 = "sha256-t6oDIYCVaCxaYy4bS1vxESaFDNxsx5JQLQK77eVuafE=";
  };

  nativeBuildInputs = [
    meson ninja pkg-config wrapGAppsHook
  ];

  buildInputs = [
    gtk3
    json_c
    libpulseaudio
    wayland
  ];

  meta = with lib; {
    homepage = "https://hg.sr.ht/~scoopta/rootbar";
    description = "A bar for Wayland WMs";
    mainProgram = "rootbar";
    longDescription = ''
      Root Bar is a bar for wlroots based wayland compositors such as sway and
      was designed to address the lack of good bars for wayland.
    '';
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.unix;
    broken = stdenv.isDarwin;
  };
}