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