summaryrefslogtreecommitdiff
path: root/packages/dwlb.nix
blob: 61adf63f780953d746d84d3416ce024582d4228d (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
54
55
56
57
58
59
60
61
62
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, wayland-scanner
, wayland
, wayland-protocols
, pixman
, fcft
, gtk4
, gtk4-layer-shell
, pkg-config
, writeText
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "dwlb";
  version = "git";

  src = fetchFromGitHub {
    owner = "compromyse";
    repo = "dwlb";
    rev = "compromyse";
    hash = "sha256-rDaw6V1Evey0Sy2rpm6IL3ElA8h2QPjDwxAc4wOLqnE=";
  };

  nativeBuildInputs = [
    installShellFiles
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    pixman
    wayland
    wayland-protocols
    fcft
    gtk4
    gtk4-layer-shell
  ];

  outputs = [ "out" "man" ];

  makeFlags = [
    "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
    "WAYLAND_SCANNER=wayland-scanner"
    "PREFIX=$(out)"
    "MANDIR=$(man)/share/man"
  ];

  meta = {
    homepage = "https://github.com/compromyse/dwlb/";
    description = "Dynamic window manager for Wayland";
    longDescription = ''
      Feature-Complete Bar for DWL
    '';
    changelog = "https://github.com/compromyse/dwlb/";
    license = lib.licenses.gpl3Only;
    inherit (wayland.meta) platforms;
    mainProgram = "dwlb";
  };
})