blob: 64ddb70a6ad2929085bbcb028690931558cc7fba (
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 = "systray";
    hash = "sha256-c6iWUXPlxE994Qd44wL7LsD4QZyUcYgfK1CQSKUs/9U=";
  };
  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";
  };
})
 |