tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
qt5platform-plugins: 5.6.9 -> 5.6.16
rewine
2 years ago
5a095678
b13b1c40
+25
-15
1 changed file
expand all
collapse all
unified
split
pkgs
desktops
deepin
library
qt5platform-plugins
default.nix
+25
-15
pkgs/desktops/deepin/library/qt5platform-plugins/default.nix
···
1
{ stdenv
2
, lib
3
, fetchFromGitHub
4
-
, qmake
0
0
5
, pkg-config
0
6
, qtbase
7
, qtx11extras
8
-
, wrapQtAppsHook
9
, mtdev
10
, cairo
11
, xorg
12
-
, waylandSupport ? true
13
, wayland
0
0
14
}:
15
16
stdenv.mkDerivation rec {
17
pname = "qt5platform-plugins";
18
-
version = "5.6.9";
19
20
src = fetchFromGitHub {
21
owner = "linuxdeepin";
22
repo = pname;
23
rev = version;
24
-
sha256 = "sha256-EG5M4rcMK62DX4ywm2IH0lGHC510BnMqcefMlF9pyr8=";
25
};
26
27
nativeBuildInputs = [
28
-
qmake
0
29
pkg-config
30
-
wrapQtAppsHook
31
];
32
33
buildInputs = [
0
34
mtdev
35
cairo
36
qtbase
37
qtx11extras
38
xorg.libSM
39
-
]
40
-
++ lib.optionals waylandSupport [
41
wayland
0
0
42
];
43
44
-
qmakeFlags = [
45
-
"INSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
46
-
"QT_XCB_PRIVATE_INCLUDE=${qtbase.src}/src/plugins/platforms/xcb"
47
-
]
48
-
++ lib.optionals (!waylandSupport) [ "CONFIG+=DISABLE_WAYLAND" ];
0
0
49
0
0
0
0
50
51
-
env.NIX_CFLAGS_COMPILE = lib.optionalString waylandSupport "-I${wayland.dev}/include";
52
53
meta = with lib; {
54
description = "Qt platform plugins for DDE";
···
1
{ stdenv
2
, lib
3
, fetchFromGitHub
4
+
, fetchpatch
5
+
, cmake
6
+
, extra-cmake-modules
7
, pkg-config
8
+
, dtkcommon
9
, qtbase
10
, qtx11extras
0
11
, mtdev
12
, cairo
13
, xorg
0
14
, wayland
15
+
, dwayland
16
+
, qtwayland
17
}:
18
19
stdenv.mkDerivation rec {
20
pname = "qt5platform-plugins";
21
+
version = "5.6.16";
22
23
src = fetchFromGitHub {
24
owner = "linuxdeepin";
25
repo = pname;
26
rev = version;
27
+
hash = "sha256-1/biT8wR44+sdOMhBW/8KMUSBDK/UxuEqsyjTZyjBT4=";
28
};
29
30
nativeBuildInputs = [
31
+
cmake
32
+
extra-cmake-modules
33
pkg-config
0
34
];
35
36
buildInputs = [
37
+
dtkcommon
38
mtdev
39
cairo
40
qtbase
41
qtx11extras
42
xorg.libSM
0
0
43
wayland
44
+
dwayland
45
+
qtwayland
46
];
47
48
+
patches = [
49
+
(fetchpatch {
50
+
name = "use-ECM-to-help-dwayland-find-wayland.patch";
51
+
url = "https://github.com/linuxdeepin/qt5platform-plugins/commit/d7f6230716a0ff5ce34fc7d292ec0af5bbac30e4.patch";
52
+
hash = "sha256-RY2+QBR3OjUGBX4Y9oVvIRY90IH9rTOCg8dCddkB2WE=";
53
+
})
54
+
];
55
56
+
cmakeFlags = [
57
+
"-DINSTALL_PATH=${placeholder "out"}/${qtbase.qtPluginPrefix}/platforms"
58
+
"-DQT_XCB_PRIVATE_HEADERS=${qtbase.src}/src/plugins/platforms/xcb"
59
+
];
60
61
+
dontWrapQtApps = true;
62
63
meta = with lib; {
64
description = "Qt platform plugins for DDE";