about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/lesbar/default.nix
blob: 5649ae27810a60535f4ba92d8fdfa350c3db21a6 (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
{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, scdoc
, libX11
, cairo
, pango
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "lesbar";
  version = "1.1.0";

  src = fetchFromSourcehut {
    owner = "~salmiak";
    repo = "lesbar";
    rev = "v${finalAttrs.version}";
    hash = "sha256-uggIoO6rgotkLi6lSJTR4d3NtidXsAC1Kjay9YsT9ps=";
  };

  nativeBuildInputs = [ pkg-config scdoc ];

  buildInputs = [ libX11 cairo pango ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "Programming language agnostic view layer for creating desktop widgets and status bars";
    homepage = "https://git.sr.ht/~salmiak/lesbar";
    license = licenses.mit;
    maintainers = with maintainers; [ jpentland ];
    platforms = platforms.linux;
    mainProgram = "lesbar";
  };
})