lomiri.lomiri-action-api: Enable qdoc docs
This commit is contained in:
parent
eeea8d648d
commit
8f74b6cdaf
@ -6,9 +6,11 @@
|
||||
, cmake
|
||||
, dbus
|
||||
, dbus-test-runner
|
||||
, doxygen
|
||||
, pkg-config
|
||||
, qtbase
|
||||
, qtdeclarative
|
||||
, qttools
|
||||
, validatePkgConfig
|
||||
}:
|
||||
|
||||
@ -26,20 +28,27 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
"doc"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Queries QMake for broken Qt variable: '/build/qtbase-<commit>/$(out)/$(qtQmlPrefix)'
|
||||
substituteInPlace qml/Lomiri/Action/CMakeLists.txt \
|
||||
--replace 'exec_program(''${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" OUTPUT_VARIABLE QT_IMPORTS_DIR)' 'set(QT_IMPORTS_DIR "''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}")'
|
||||
|
||||
# Fix section labels
|
||||
substituteInPlace documentation/qml/pages/* \
|
||||
--replace-warn '\part' '\section1'
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
doxygen
|
||||
pkg-config
|
||||
qtdeclarative
|
||||
qttools # qdoc
|
||||
validatePkgConfig
|
||||
];
|
||||
|
||||
@ -57,8 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
(lib.cmakeBool "ENABLE_TESTING" finalAttrs.finalPackage.doCheck)
|
||||
# Use vendored libhud2, TODO package libhud2 separately?
|
||||
(lib.cmakeBool "use_libhud2" false)
|
||||
# QML docs need qdoc, https://github.com/NixOS/nixpkgs/pull/245379
|
||||
(lib.cmakeBool "GENERATE_DOCUMENTATION" false)
|
||||
(lib.cmakeBool "GENERATE_DOCUMENTATION" true)
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
Loading…
Reference in New Issue
Block a user