lol
1{
2 stdenv,
3 lib,
4 fetchFromGitLab,
5 pkg-config,
6 meson,
7 ninja,
8 wayland,
9 wayland-protocols,
10 wayland-scanner,
11 cairo,
12 dbus,
13 pango,
14 gtk3,
15}:
16
17stdenv.mkDerivation rec {
18 pname = "libdecor";
19 version = "0.2.3";
20
21 src = fetchFromGitLab {
22 domain = "gitlab.freedesktop.org";
23 owner = "libdecor";
24 repo = "libdecor";
25 rev = version;
26 hash = "sha256-7h/Xfw8chzRmmWKcOyIB7KSL+ZzNGDpElfE22ReoJqY=";
27 };
28
29 outputs = [
30 "out"
31 "dev"
32 ];
33
34 strictDeps = true;
35
36 mesonFlags = [
37 (lib.mesonBool "demo" false)
38 ];
39
40 nativeBuildInputs = [
41 meson
42 ninja
43 pkg-config
44 wayland-scanner
45 ];
46
47 buildInputs = [
48 wayland
49 wayland-protocols
50 cairo
51 dbus
52 pango
53 gtk3
54 ];
55
56 meta = with lib; {
57 homepage = "https://gitlab.freedesktop.org/libdecor/libdecor";
58 description = "Client-side decorations library for Wayland clients";
59 license = licenses.mit;
60 platforms = platforms.linux;
61 maintainers = with maintainers; [ artturin ];
62 };
63}