blob: f9c2c132aebba207ffb9294ac918eeb5496750e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
stdenv,
lib,
pkg-config,
qmake,
qtbase,
qtdeclarative,
sailfish-access-control,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sailfish-access-control-plugin";
inherit (sailfish-access-control) version src patches;
postPatch = ''
substituteInPlace qt/qt.pro \
--replace-fail '$$[QT_INSTALL_QML]' '${placeholder "out"}/${qtbase.qtQmlPrefix}'
'';
# QMake doesn't handle strictDeps well
strictDeps = false;
nativeBuildInputs = [
pkg-config
qmake
qtdeclarative # qmlplugindump
];
buildInputs = [
qtdeclarative
sailfish-access-control
];
# Qt plugin
dontWrapQtApps = true;
# sourceRoot breaks patches
preConfigure = ''
cd qt
'';
# Do all configuring now, not during build
postConfigure = ''
make qmake_all
'';
meta = {
description = "QML interface for sailfish-access-control";
inherit (sailfish-access-control.meta)
homepage
changelog
license
teams
platforms
;
};
})
|