1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 libsForQt5,
7 wayland,
8 wayland-protocols,
9 wayland-scanner,
10 extra-cmake-modules,
11 deepin-wayland-protocols,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "dwayland";
16 version = "5.25.0";
17
18 src = fetchFromGitHub {
19 owner = "linuxdeepin";
20 repo = pname;
21 rev = version;
22 hash = "sha256-XZvL3lauVW5D3r3kybpS3SiitvwEScqgYe2h9c1DuCs=";
23 };
24
25 nativeBuildInputs = [
26 cmake
27 extra-cmake-modules
28 libsForQt5.qttools
29 wayland-scanner
30 ];
31
32 buildInputs = [
33 libsForQt5.qtbase
34 libsForQt5.qtwayland
35 wayland
36 wayland-protocols
37 deepin-wayland-protocols
38 ];
39
40 dontWrapQtApps = true;
41
42 # cmake requires that the kf5 directory must not empty
43 postInstall = ''
44 mkdir $out/include/KF5
45 '';
46
47 meta = with lib; {
48 description = "Qt-style API to interact with the wayland-client and wayland-server";
49 homepage = "https://github.com/linuxdeepin/dwayland";
50 license = licenses.lgpl21Plus;
51 platforms = platforms.linux;
52 teams = [ teams.deepin ];
53 };
54}