18 stdenv.mkDerivation (finalAttrs: {
19 pname = "lomiri-action-api";
22 src = fetchFromGitLab {
24 repo = "development/core/lomiri-action-api";
25 rev = finalAttrs.version;
26 hash = "sha256-JDcUq7qEp6Z8TjdNspIz4FE/euH+ytGWa4rSxy4voiU=";
36 # Queries QMake for broken Qt variable: '/build/qtbase-<commit>/$(out)/$(qtQmlPrefix)'
37 substituteInPlace qml/Lomiri/Action/CMakeLists.txt \
38 --replace-fail 'exec_program(''${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" OUTPUT_VARIABLE QT_IMPORTS_DIR)' 'set(QT_IMPORTS_DIR "''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}")'
41 substituteInPlace documentation/qml/pages/* \
42 --replace-warn '\part' '\section1'
67 (lib.cmakeBool "ENABLE_TESTING" finalAttrs.finalPackage.doCheck)
68 (lib.cmakeBool "GENERATE_DOCUMENTATION" true)
69 # Use vendored libhud2, TODO package libhud2 separately?
70 (lib.cmakeBool "use_libhud2" false)
73 dontWrapQtApps = true;
75 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
78 export QT_PLUGIN_PATH=${lib.getBin qtbase}/${qtbase.qtPluginPrefix}
79 export QML2_IMPORT_PATH=${lib.getBin qtdeclarative}/${qtbase.qtQmlPrefix}
83 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
84 updateScript = gitUpdater { };
88 description = "Allow applications to export actions in various forms to the Lomiri Shell";
89 homepage = "https://gitlab.com/ubports/development/core/lomiri-action-api";
90 changelog = "https://gitlab.com/ubports/development/core/lomiri-action-api/-/blob/${finalAttrs.version}/ChangeLog";
91 license = licenses.lgpl3Only;
92 maintainers = teams.lomiri.members;
93 platforms = platforms.linux;
94 pkgConfigModules = [ "lomiri-action-qt-1" ];