nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 pkg-config,
8 dtkcommon,
9 libsForQt5,
10 mtdev,
11 cairo,
12 xorg,
13 wayland,
14 dwayland,
15}:
16
17stdenv.mkDerivation rec {
18 pname = "qt5platform-plugins";
19 version = "5.6.32";
20
21 src = fetchFromGitHub {
22 owner = "linuxdeepin";
23 repo = pname;
24 rev = version;
25 hash = "sha256-jbt+ym6TQX3tecFCSlz8Z2ZnqOa69zYgaB5ohQM3lQg=";
26 };
27
28 nativeBuildInputs = [
29 cmake
30 extra-cmake-modules
31 pkg-config
32 ];
33
34 buildInputs = [
35 dtkcommon
36 mtdev
37 cairo
38 libsForQt5.qtbase
39 libsForQt5.qtx11extras
40 xorg.libSM
41 wayland
42 dwayland
43 libsForQt5.qtwayland
44 ];
45
46 cmakeFlags = [
47 "-DINSTALL_PATH=${placeholder "out"}/${libsForQt5.qtbase.qtPluginPrefix}/platforms"
48 "-DQT_XCB_PRIVATE_HEADERS=${libsForQt5.qtbase.src}/src/plugins/platforms/xcb"
49 ];
50
51 dontWrapQtApps = true;
52
53 meta = with lib; {
54 description = "Qt platform plugins for DDE";
55 homepage = "https://github.com/linuxdeepin/qt5platform-plugins";
56 license = licenses.gpl3Plus;
57 platforms = platforms.linux;
58 teams = [ teams.deepin ];
59 };
60}