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