Merge pull request #284515 from OPNA2608/update/lomiri/OTA-4

lomiri: OTA-4 update

authored by Lily Foster and committed by GitHub 7367ffc8 57168413

+216 -350
+6 -19
pkgs/by-name/ne/net-cpp/package.nix
··· 16 16 , process-cpp 17 17 , properties-cpp 18 18 , python3 19 + , validatePkgConfig 19 20 }: 20 21 21 22 let ··· 25 26 in 26 27 stdenv.mkDerivation (finalAttrs: { 27 28 pname = "net-cpp"; 28 - version = "3.1.0"; 29 + version = "3.1.1"; 29 30 30 31 src = fetchFromGitLab { 31 32 owner = "ubports"; 32 33 repo = "development/core/lib-cpp/net-cpp"; 33 34 rev = finalAttrs.version; 34 - hash = "sha256-qXKuFLmtPjdqTcBIM07xbRe3DnP7AzieCy7Tbjtl0uc="; 35 + hash = "sha256-MSqdP3kGI9hDdxFv2a0yd5ZkFkf1lMurB+KDIZLR9jg="; 35 36 }; 36 37 37 38 outputs = [ ··· 41 42 ]; 42 43 43 44 patches = [ 44 - # Enable disabling of Werror 45 - # Remove when version > 3.1.0 46 - (fetchpatch { 47 - name = "0001-net-cpp-Add-ENABLE_WERROR-option.patch"; 48 - url = "https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/commit/0945180aa6dd38245688d5ebc11951b272e93dc4.patch"; 49 - hash = "sha256-91YuEgV+Q9INN4BJXYwWgKUNHHtUYz3CG+ROTy24GIE="; 50 - }) 51 - 52 - # Enable opting out of tests 53 - # https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/merge_requests/14 54 - (fetchpatch { 55 - name = "0002-net-cpp-Make-tests-optional.patch"; 56 - url = "https://gitlab.com/OPNA2608/net-cpp/-/commit/cfbcd55446a4224a4c913ead3a370cd56d07a71b.patch"; 57 - hash = "sha256-kt48txzmWNXyxvx3DWAJl7I90c+o3KlgveNQjPkhfxA="; 58 - }) 59 - 60 45 # Be more lenient with how quickly HTTP test server must be up, for slower hardware / archs 61 46 (fetchpatch { 62 47 url = "https://salsa.debian.org/ubports-team/net-cpp/-/raw/941d9eceaa66a06eabb1eb79554548b47d4a60ab/debian/patches/1007_wait-for-flask.patch"; ··· 76 61 cmake 77 62 doxygen 78 63 graphviz 64 + validatePkgConfig 79 65 ]; 80 66 81 67 buildInputs = [ ··· 98 84 99 85 cmakeFlags = [ 100 86 # https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/issues/4 101 - "-DENABLE_WERROR=OFF" 87 + (lib.cmakeBool "ENABLE_WERROR" false) 102 88 ]; 103 89 104 90 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; ··· 114 100 meta = with lib; { 115 101 description = "Simple yet beautiful networking API for C++11"; 116 102 homepage = "https://gitlab.com/ubports/development/core/lib-cpp/net-cpp"; 103 + changelog = "https://gitlab.com/ubports/development/core/lib-cpp/net-cpp/-/blob/${finalAttrs.version}/ChangeLog"; 117 104 license = licenses.lgpl3Only; 118 105 maintainers = teams.lomiri.members; 119 106 platforms = platforms.linux;
+10 -27
pkgs/by-name/pe/persistent-cache-cpp/package.nix
··· 12 12 , lomiri 13 13 , pkg-config 14 14 , python3 15 + , validatePkgConfig 15 16 }: 16 17 17 18 stdenv.mkDerivation (finalAttrs: { 18 19 pname = "persistent-cache-cpp"; 19 - version = "1.0.6"; 20 + version = "1.0.7"; 20 21 21 22 src = fetchFromGitLab { 22 23 owner = "ubports"; 23 24 repo = "development/core/lib-cpp/persistent-cache-cpp"; 24 25 rev = finalAttrs.version; 25 - hash = "sha256-RLZiYY0Y9LT+ajM4Va4MpVVDBlu2yvCpn8bNGMB8ydo="; 26 + hash = "sha256-bOABrRSy5Mzeaqoc5ujcGXyBAaCJLv/488M7fkr0npE="; 26 27 }; 27 28 28 29 outputs = [ ··· 32 33 ]; 33 34 34 35 patches = [ 35 - # Version in CMakeLists.txt didn't get bumped, emits wrong version in pkg-config 36 - # Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/13 merged & in release 37 - (fetchpatch { 38 - name = "0001-persistent-cache-cpp-CMakeLists-txt-Update-version.patch"; 39 - url = "https://gitlab.com/OPNA2608/persistent-cache-cpp/-/commit/20d5d3f61563c62bcbe85e71ddc4fe16d7c995d5.patch"; 40 - hash = "sha256-BKovtT9OvV+xEwBO8AZTxAzL9kqyDB9ip32t2Xx4eIk="; 41 - }) 42 - 43 36 # PersistentStringCacheImpl.exceptions test fails on LLVM's libcxx, it depends on std::system_error producing a very specific exception text 44 37 # Expects "Unknown error 666", gets "unspecified generic_category error" 45 38 # Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/14 merged & in release 46 39 (fetchpatch { 47 - name = "0002-persistent-cache-cpp-persistent_string_cache_impl_test-libcxx-fix.patch"; 48 - url = "https://gitlab.com/OPNA2608/persistent-cache-cpp/-/commit/a696dbd3093b8333f9ee1f0cad846b2256c729c5.patch"; 40 + name = "0001-persistent-cache-cpp-persistent_string_cache_impl_test-libcxx-fix.patch"; 41 + url = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/commit/a696dbd3093b8333f9ee1f0cad846b2256c729c5.patch"; 49 42 hash = "sha256-SJxdXeM7W+WKEmiLTwnQYAM7YmPayEk6vPb46y4thv4="; 50 43 }) 51 44 52 45 # Enable usage of BUILD_TESTING to opting out of tests 53 46 # Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/15 merged & in release 54 47 (fetchpatch { 55 - name = "0003-persistent-cache-cpp-Enable-opting-out-of-tests.patch"; 56 - url = "https://gitlab.com/OPNA2608/persistent-cache-cpp/-/commit/1fb06d28c16325e90046e93662c0f5fd16c29b4a.patch"; 48 + name = "0002-persistent-cache-cpp-Enable-opting-out-of-tests.patch"; 49 + url = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/commit/1fb06d28c16325e90046e93662c0f5fd16c29b4a.patch"; 57 50 hash = "sha256-2/6EYBh71S4dzqWEde+3dLOGp015fN6IifAj1bI1XAI="; 58 51 }) 59 - 60 - # Enable linking based on stdenv (static or dynamic), only propagate leveldb link requirement when linked statically 61 - # Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/16 merged & in release 62 - (fetchpatch { 63 - name = "0004-persistent-cache-cpp-Un-hardcode-static-linking.patch"; 64 - url = "https://gitlab.com/OPNA2608/persistent-cache-cpp/-/commit/45cd84fe76e3a0e1da41a662df695009a6f4f07e.patch"; 65 - hash = "sha256-1UjdhzrjnIUO1ySaZTm0vkdNgok0RNlGtNOWUoAUlzU="; 66 - }) 67 - (fetchpatch { 68 - name = "0005-persistent-cache-cpp-Propagate-leveldb-dependency-only-when-needed.patch"; 69 - url = "https://gitlab.com/OPNA2608/persistent-cache-cpp/-/commit/6204b65df32360a7e358558041219a867652c429.patch"; 70 - hash = "sha256-cIewdtF0OdQuLz94KNY2HL8XZp1IaKlZz2hNlMvKLw4="; 71 - }) 72 52 ]; 73 53 74 54 postPatch = '' ··· 87 67 cmake 88 68 doxygen 89 69 pkg-config 70 + validatePkgConfig 90 71 ]; 91 72 92 73 buildInputs = [ ··· 106 87 cmakeFlags = [ 107 88 # error: 'old_version' may be used uninitialized 108 89 (lib.cmakeBool "Werror" false) 90 + # Defaults to static if not set 109 91 (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) 110 92 ]; 111 93 ··· 123 105 image files) that is fast, scalable, and crash-proof. 124 106 ''; 125 107 homepage = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp"; 108 + changelog = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/blob/${finalAttrs.version}/ChangeLog"; 126 109 license = licenses.lgpl3Only; 127 110 maintainers = teams.lomiri.members; 128 111 platforms = platforms.unix;
+7 -4
pkgs/desktops/lomiri/data/lomiri-schemas/default.nix
··· 8 8 , glib 9 9 , intltool 10 10 , pkg-config 11 + , validatePkgConfig 11 12 }: 12 13 13 14 stdenv.mkDerivation (finalAttrs: { 14 15 pname = "lomiri-schemas"; 15 - version = "0.1.3"; 16 + version = "0.1.4"; 16 17 17 18 src = fetchFromGitLab { 18 19 owner = "ubports"; 19 20 repo = "development/core/lomiri-schemas"; 20 21 rev = finalAttrs.version; 21 - hash = "sha256-FrDUFqdD0KW2VG2pTA6LMb6/9PdNtQUlYTEo1vnW6QQ="; 22 + hash = "sha256-Pnn/Qh5EYEqmP8QFsZcSCpDL36++aeUUok3t9a1/1n0="; 22 23 }; 23 24 24 25 strictDeps = true; ··· 28 29 glib # glib-compile-schemas 29 30 pkg-config 30 31 intltool 32 + validatePkgConfig 31 33 ]; 32 34 33 35 buildInputs = [ ··· 36 38 ]; 37 39 38 40 cmakeFlags = [ 39 - "-DGSETTINGS_LOCALINSTALL=ON" 40 - "-DGSETTINGS_COMPILE=ON" 41 + (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true) 42 + (lib.cmakeBool "GSETTINGS_COMPILE" true) 41 43 ]; 42 44 43 45 passthru = { ··· 48 50 meta = with lib; { 49 51 description = "GSettings / AccountsService schema files for Lomiri"; 50 52 homepage = "https://gitlab.com/ubports/development/core/lomiri-schemas"; 53 + changelog = "https://gitlab.com/ubports/development/core/lomiri-schemas/-/blob/${finalAttrs.version}/ChangeLog"; 51 54 license = licenses.lgpl21Plus; 52 55 maintainers = teams.lomiri.members; 53 56 platforms = platforms.linux;
+10 -18
pkgs/desktops/lomiri/development/geonames/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 - , fetchpatch 5 4 , gitUpdater 6 5 , testers 7 6 , buildPackages ··· 17 16 , withDocumentation ? stdenv.buildPlatform.canExecute stdenv.hostPlatform 18 17 , gtk-doc 19 18 , pkg-config 19 + , validatePkgConfig 20 20 }: 21 21 22 22 stdenv.mkDerivation (finalAttrs: { 23 23 pname = "geonames"; 24 - version = "0.3.0"; 24 + version = "0.3.1"; 25 25 26 26 src = fetchFromGitLab { 27 27 owner = "ubports"; 28 28 repo = "development/core/geonames"; 29 29 rev = finalAttrs.version; 30 - hash = "sha256-Mo7Khj2pgdJ9kT3npFXnh1WTSsY/B1egWTccbAXFNY8="; 30 + hash = "sha256-AhRnUoku17kVY0UciHQXFDa6eCH6HQ4ZGIOobCaGTKQ="; 31 31 }; 32 32 33 33 outputs = [ ··· 39 39 "devdoc" 40 40 ]; 41 41 42 - patches = [ 43 - # Improves install locations of demo & docs 44 - # Remove when https://gitlab.com/ubports/development/core/geonames/-/merge_requests/3 merged & in release 45 - (fetchpatch { 46 - name = "0001-geonames-Use-CMAKE_INSTALL_BINDIR-for-install.patch"; 47 - url = "https://gitlab.com/OPNA2608/geonames/-/commit/3bca6d4d02843aed851a0a7480d5cd5ac02b4cda.patch"; 48 - hash = "sha256-vwffuMKpIqymYaiGEvnNeVXLmnz5e4aBpg55fnNbjKs="; 49 - }) 50 - ]; 51 - 52 42 postPatch = '' 53 43 patchShebangs src/generate-locales.sh tests/setup-test-env.sh 54 44 ''; ··· 60 50 gettext 61 51 glib # glib-compile-resources 62 52 pkg-config 53 + validatePkgConfig 63 54 ] ++ lib.optionals withDocumentation [ 64 55 docbook-xsl-nons 65 56 docbook_xml_dtd_45 ··· 84 75 ]; 85 76 86 77 cmakeFlags = [ 87 - "-DWANT_DOC=${lib.boolToString withDocumentation}" 88 - "-DWANT_DEMO=${lib.boolToString withExamples}" 89 - "-DWANT_TESTS=${lib.boolToString finalAttrs.finalPackage.doCheck}" 78 + (lib.cmakeBool "WANT_DOC" withDocumentation) 79 + (lib.cmakeBool "WANT_DEMO" withExamples) 80 + (lib.cmakeBool "WANT_TESTS" finalAttrs.finalPackage.doCheck) 90 81 # Keeps finding & using glib-compile-resources from buildInputs otherwise 91 - "-DCMAKE_PROGRAM_PATH=${lib.makeBinPath [ buildPackages.glib.dev ]}" 82 + (lib.cmakeFeature "CMAKE_PROGRAM_PATH" (lib.makeBinPath [ buildPackages.glib.dev ])) 92 83 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 93 84 # only for cross without native execute support because the canExecute "emulator" call has a format that I can't get CMake to accept 94 - "-DCMAKE_CROSSCOMPILING_EMULATOR=${stdenv.hostPlatform.emulator buildPackages}" 85 + (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) 95 86 ]; 96 87 97 88 preInstall = lib.optionalString withDocumentation '' ··· 109 100 meta = with lib; { 110 101 description = "Parse and query the geonames database dump"; 111 102 homepage = "https://gitlab.com/ubports/development/core/geonames"; 103 + changelog = "https://gitlab.com/ubports/development/core/geonames/-/blob/${finalAttrs.version}/ChangeLog"; 112 104 license = licenses.gpl3Only; 113 105 maintainers = teams.lomiri.members; 114 106 platforms = platforms.all;
+37
pkgs/desktops/lomiri/development/libusermetrics/2001-Remove-custom-check-target.patch
··· 1 + From 52ac1d6548b4a92d569c5d2f53b84c604c7fce8a Mon Sep 17 00:00:00 2001 2 + From: OPNA2608 <opna2608@protonmail.com> 3 + Date: Thu, 1 Feb 2024 22:42:39 +0100 4 + Subject: [PATCH] Remove custom check target 5 + 6 + The automatic one provides better controls for us 7 + --- 8 + CMakeLists.txt | 7 +------ 9 + 1 file changed, 1 insertion(+), 6 deletions(-) 10 + 11 + diff --git a/CMakeLists.txt b/CMakeLists.txt 12 + index af643a7..75b3cc1 100644 13 + --- a/CMakeLists.txt 14 + +++ b/CMakeLists.txt 15 + @@ -105,18 +105,13 @@ add_subdirectory("data") 16 + 17 + 18 + if(ENABLE_TESTS) 19 + -enable_testing() 20 + +include(CTest) 21 + 22 + pkg_check_modules(QTDBUSTEST REQUIRED libqtdbustest-1 REQUIRED) 23 + include_directories(${QTDBUSTEST_INCLUDE_DIRS}) 24 + 25 + add_subdirectory(tests) 26 + 27 + -ADD_CUSTOM_TARGET( 28 + - check 29 + - ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output-on-failure 30 + -) 31 + - 32 + find_package(CoverageReport) 33 + enable_coverage_report( 34 + TARGETS 35 + -- 36 + 2.42.0 37 +
+22 -22
pkgs/desktops/lomiri/development/libusermetrics/default.nix
··· 19 19 , qtdeclarative 20 20 , qtxmlpatterns 21 21 , ubports-click 22 + , validatePkgConfig 22 23 , wrapQtAppsHook 23 24 }: 24 25 25 26 stdenv.mkDerivation (finalAttrs: { 26 27 pname = "libusermetrics"; 27 - version = "1.3.0"; 28 + version = "1.3.2"; 28 29 29 30 src = fetchFromGitLab { 30 31 owner = "ubports"; 31 32 repo = "development/core/libusermetrics"; 32 33 rev = finalAttrs.version; 33 - hash = "sha256-yO9wZcXJBKt1HZ1GKoQ1flqYuwW9PlXiWLE3bl21PSQ="; 34 + hash = "sha256-jmJH5vByBnBqgQfyb7HNVe+eS/jHcU64R2dnvuLbqss="; 34 35 }; 35 36 36 37 outputs = [ ··· 39 40 "doc" 40 41 ]; 41 42 42 - postPatch = '' 43 - substituteInPlace data/CMakeLists.txt \ 44 - --replace '/etc' "$out/etc" 43 + patches = [ 44 + # Not submitted yet, waiting for decision on how CMake testing should be handled 45 + ./2001-Remove-custom-check-target.patch 46 + ]; 45 47 48 + postPatch = '' 46 49 # Tries to query QMake for QT_INSTALL_QML variable, would return broken paths into /build/qtbase-<commit> even if qmake was available 47 50 substituteInPlace src/modules/UserMetrics/CMakeLists.txt \ 48 - --replace "\''${QT_IMPORTS_DIR}/UserMetrics" '${placeholder "out"}/${qtbase.qtQmlPrefix}/UserMetrics' 49 - 50 - substituteInPlace src/libusermetricsinput/CMakeLists.txt \ 51 - --replace 'RUNTIME DESTINATION bin' 'RUNTIME DESTINATION ''${CMAKE_INSTALL_BINDIR}' 51 + --replace 'query_qmake(QT_INSTALL_QML QT_IMPORTS_DIR)' 'set(QT_IMPORTS_DIR "''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}")' 52 52 53 53 substituteInPlace doc/CMakeLists.txt \ 54 54 --replace "\''${CMAKE_INSTALL_DATAROOTDIR}/doc/libusermetrics-doc" "\''${CMAKE_INSTALL_DOCDIR}" 55 - '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) '' 56 - # Only needed by tests 57 - sed -i -e '/QTDBUSTEST/d' CMakeLists.txt 58 55 ''; 59 56 60 57 strictDeps = true; ··· 64 61 doxygen 65 62 intltool 66 63 pkg-config 64 + validatePkgConfig 67 65 wrapQtAppsHook 68 66 ]; 69 67 ··· 91 89 ]; 92 90 93 91 cmakeFlags = [ 94 - "-DGSETTINGS_LOCALINSTALL=ON" 95 - "-DGSETTINGS_COMPILE=ON" 96 - "-DENABLE_TESTS=${lib.boolToString finalAttrs.finalPackage.doCheck}" 92 + (lib.cmakeBool "GSETTINGS_LOCALINSTALL" true) 93 + (lib.cmakeBool "GSETTINGS_COMPILE" true) 94 + (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck) 95 + (lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" (lib.concatStringsSep ";" [ 96 + # Exclude tests 97 + "-E" (lib.strings.escapeShellArg "(${lib.concatStringsSep "|" [ 98 + # Flaky, randomly failing in UserMetricsImplTest.AddTranslatedData (data not ready when signal is emitted?) 99 + "^usermetricsoutput-unit-tests" 100 + ]})") 101 + ])) 97 102 ]; 98 103 99 104 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 100 105 101 - checkPhase = '' 102 - runHook preCheck 103 - 106 + preCheck = '' 104 107 export QT_PLUGIN_PATH=${lib.getBin qtbase}/lib/qt-${qtbase.version}/plugins/ 105 108 export QML2_IMPORT_PATH=${lib.getBin qtdeclarative}/lib/qt-${qtbase.version}/qml/ 106 - dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf -- \ 107 - make test "''${enableParallelChecking:+-j $NIX_BUILD_CORES}" 108 - 109 - runHook postCheck 110 109 ''; 111 110 112 111 passthru = { ··· 117 116 meta = with lib; { 118 117 description = "Enables apps to locally store interesting numerical data for later presentation"; 119 118 homepage = "https://gitlab.com/ubports/development/core/libusermetrics"; 119 + changelog = "https://gitlab.com/ubports/development/core/libusermetrics/-/blob/${finalAttrs.version}/ChangeLog"; 120 120 license = licenses.lgpl3Only; 121 121 maintainers = teams.lomiri.members; 122 122 platforms = platforms.linux;
+8 -5
pkgs/desktops/lomiri/development/lomiri-app-launch/default.nix
··· 20 20 , python3 21 21 , systemd 22 22 , ubports-click 23 + , validatePkgConfig 23 24 , zeitgeist 24 25 , withDocumentation ? true 25 26 , doxygen ··· 29 30 30 31 stdenv.mkDerivation (finalAttrs: { 31 32 pname = "lomiri-app-launch"; 32 - version = "0.1.8"; 33 + version = "0.1.9"; 33 34 34 35 outputs = [ 35 36 "out" ··· 42 43 owner = "ubports"; 43 44 repo = "development/core/lomiri-app-launch"; 44 45 rev = finalAttrs.version; 45 - hash = "sha256-NIBZk5H0bPwAwkI0Qiq2S9dZvchAFPBCHKi2inUVZmI="; 46 + hash = "sha256-vuu6tZ5eDJN2rraOpmrDddSl1cIFFBSrILKMJqcUDVc="; 46 47 }; 47 48 48 49 postPatch = '' ··· 50 51 51 52 # used pkg_get_variable, cannot replace prefix 52 53 substituteInPlace data/CMakeLists.txt \ 53 - --replace 'DESTINATION "''${SYSTEMD_USER_UNIT_DIR}"' 'DESTINATION "${placeholder "out"}/lib/systemd/user"' 54 + --replace 'pkg_get_variable(SYSTEMD_USER_UNIT_DIR systemd systemduserunitdir)' 'set(SYSTEMD_USER_UNIT_DIR "''${CMAKE_INSTALL_PREFIX}/lib/systemd/user")' 54 55 55 56 substituteInPlace tests/jobs-systemd.cpp \ 56 57 --replace '^(/usr)?' '^(/nix/store/\\w+-bash-.+)?' ··· 63 64 dpkg # for setting LOMIRI_APP_LAUNCH_ARCH 64 65 gobject-introspection 65 66 pkg-config 67 + validatePkgConfig 66 68 ] ++ lib.optionals withDocumentation [ 67 69 doxygen 68 70 python3Packages.breathe ··· 96 98 ]; 97 99 98 100 cmakeFlags = [ 99 - "-DENABLE_MIRCLIENT=OFF" 100 - "-DENABLE_TESTS=${lib.boolToString finalAttrs.doCheck}" 101 + (lib.cmakeBool "ENABLE_MIRCLIENT" false) 102 + (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck) 101 103 ]; 102 104 103 105 postBuild = lib.optionalString withDocumentation '' ··· 119 121 meta = with lib; { 120 122 description = "System and associated utilities to launch applications in a standard and confined way"; 121 123 homepage = "https://gitlab.com/ubports/development/core/lomiri-app-launch"; 124 + changelog = "https://gitlab.com/ubports/development/core/lomiri-app-launch/-/blob/${finalAttrs.version}/ChangeLog"; 122 125 license = licenses.gpl3Only; 123 126 maintainers = teams.lomiri.members; 124 127 platforms = platforms.linux;
+10 -4
pkgs/desktops/lomiri/development/trust-store/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 + , gitUpdater 4 5 , testers 5 6 , boost 6 7 , cmake ··· 19 20 , properties-cpp 20 21 , qtbase 21 22 , qtdeclarative 23 + , validatePkgConfig 22 24 }: 23 25 24 26 stdenv.mkDerivation (finalAttrs: { 25 27 pname = "trust-store"; 26 - version = "0-unstable-2023-12-27"; 28 + version = "2.0.2"; 27 29 28 30 src = fetchFromGitLab { 29 31 owner = "ubports"; 30 32 repo = "development/core/trust-store"; 31 - rev = "c91e5ac54c4032525f930f0651d673ad3a1095a2"; 32 - hash = "sha256-zqs40tKo2AOd9yL2Xfbk52Uh8hy4uT1XDT6YtKufAaY="; 33 + rev = finalAttrs.version; 34 + hash = "sha256-tVwqBu4py8kdydyKECZfLvcLijpZSQszeo8ytTDagy0="; 33 35 }; 34 36 35 37 outputs = [ ··· 58 60 gettext 59 61 graphviz 60 62 pkg-config 63 + validatePkgConfig 61 64 ]; 62 65 63 66 buildInputs = [ ··· 106 109 # Starts & talks to DBus 107 110 enableParallelChecking = false; 108 111 109 - passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 112 + passthru = { 113 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 114 + updateScript = gitUpdater { }; 115 + }; 110 116 111 117 meta = with lib; { 112 118 description = "Common implementation of a trust store to be used by trusted helpers";
+11 -16
pkgs/desktops/lomiri/qml/lomiri-action-api/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 - , fetchpatch 5 4 , gitUpdater 6 5 , testers 7 6 , cmake ··· 10 9 , pkg-config 11 10 , qtbase 12 11 , qtdeclarative 12 + , validatePkgConfig 13 13 }: 14 14 15 15 stdenv.mkDerivation (finalAttrs: { 16 16 pname = "lomiri-action-api"; 17 - version = "1.1.2"; 17 + version = "1.1.3"; 18 18 19 19 src = fetchFromGitLab { 20 20 owner = "ubports"; 21 21 repo = "development/core/lomiri-action-api"; 22 22 rev = finalAttrs.version; 23 - hash = "sha256-FOHjZ5F4IkjSn/SpZEz25CbTR/gaK4D7BRxDVSDuAl8="; 23 + hash = "sha256-JDcUq7qEp6Z8TjdNspIz4FE/euH+ytGWa4rSxy4voiU="; 24 24 }; 25 25 26 26 outputs = [ ··· 28 28 "dev" 29 29 ]; 30 30 31 - patches = [ 32 - # Drop deprecated qt5_use_modules usage 33 - # Remove when https://gitlab.com/ubports/development/core/lomiri-action-api/-/merge_requests/4 merged & in release 34 - (fetchpatch { 35 - url = "https://gitlab.com/OPNA2608/lomiri-action-api/-/commit/ff1d7f7eb127f6a00a99e8b278c963899d0303f0.patch"; 36 - hash = "sha256-nLUoRl260hMbtEPjOQJI/3w54xgFxjcxerAqNN5FU/0="; 37 - }) 38 - ]; 39 - 40 31 postPatch = '' 41 32 # Queries QMake for broken Qt variable: '/build/qtbase-<commit>/$(out)/$(qtQmlPrefix)' 42 33 substituteInPlace qml/Lomiri/Action/CMakeLists.txt \ 43 - --replace "\''${QT_IMPORTS_DIR}/Lomiri" '${qtbase.qtQmlPrefix}/Lomiri' 34 + --replace 'exec_program(''${QMAKE_EXECUTABLE} ARGS "-query QT_INSTALL_QML" OUTPUT_VARIABLE QT_IMPORTS_DIR)' 'set(QT_IMPORTS_DIR "''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}")' 44 35 ''; 45 36 46 37 strictDeps = true; ··· 48 39 nativeBuildInputs = [ 49 40 cmake 50 41 pkg-config 42 + validatePkgConfig 51 43 ]; 52 44 53 45 buildInputs = [ ··· 61 53 ]; 62 54 63 55 cmakeFlags = [ 64 - "-DENABLE_TESTING=${lib.boolToString finalAttrs.finalPackage.doCheck}" 65 - "-Duse_libhud2=OFF" # Use vendored libhud2, TODO package libhud2 separately? 66 - "-DGENERATE_DOCUMENTATION=OFF" # QML docs need qdoc, https://github.com/NixOS/nixpkgs/pull/245379 56 + (lib.cmakeBool "ENABLE_TESTING" finalAttrs.finalPackage.doCheck) 57 + # Use vendored libhud2, TODO package libhud2 separately? 58 + (lib.cmakeBool "use_libhud2" false) 59 + # QML docs need qdoc, https://github.com/NixOS/nixpkgs/pull/245379 60 + (lib.cmakeBool "GENERATE_DOCUMENTATION" false) 67 61 ]; 68 62 69 63 dontWrapQtApps = true; ··· 83 77 meta = with lib; { 84 78 description = "Allow applications to export actions in various forms to the Lomiri Shell"; 85 79 homepage = "https://gitlab.com/ubports/development/core/lomiri-action-api"; 80 + changelog = "https://gitlab.com/ubports/development/core/lomiri-action-api/-/blob/${finalAttrs.version}/ChangeLog"; 86 81 license = licenses.lgpl3Only; 87 82 maintainers = teams.lomiri.members; 88 83 platforms = platforms.linux;
+3 -2
pkgs/desktops/lomiri/qml/lomiri-settings-components/default.nix
··· 12 12 13 13 stdenv.mkDerivation (finalAttrs: { 14 14 pname = "lomiri-settings-components"; 15 - version = "1.1.0"; 15 + version = "1.1.1"; 16 16 17 17 src = fetchFromGitLab { 18 18 owner = "ubports"; 19 19 repo = "development/core/lomiri-settings-components"; 20 20 rev = finalAttrs.version; 21 - hash = "sha256-13uxUBM+uOmt8X0uLGWNP8YbwCdb2QCChB8IP3td5a4="; 21 + hash = "sha256-2Wyh+2AW6EeKRv26D4l+GIoH5sWC9SmOODNHOveFZPg="; 22 22 }; 23 23 24 24 postPatch = '' ··· 58 58 meta = with lib; { 59 59 description = "QML settings components for the Lomiri Desktop Environment"; 60 60 homepage = "https://gitlab.com/ubports/development/core/lomiri-settings-components"; 61 + changelog = "https://gitlab.com/ubports/development/core/lomiri-settings-components/-/blob/${finalAttrs.version}/ChangeLog"; 61 62 license = licenses.lgpl3Only; 62 63 maintainers = teams.lomiri.members; 63 64 platforms = platforms.linux;
+14 -36
pkgs/desktops/lomiri/qml/lomiri-ui-extras/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 - , fetchpatch 5 4 , gitUpdater 6 5 , cmake 7 6 , cmake-extras ··· 17 16 18 17 stdenv.mkDerivation (finalAttrs: { 19 18 pname = "lomiri-ui-extras"; 20 - version = "0.6.2"; 19 + version = "0.6.3"; 21 20 22 21 src = fetchFromGitLab { 23 22 owner = "ubports"; 24 23 repo = "development/core/lomiri-ui-extras"; 25 24 rev = finalAttrs.version; 26 - hash = "sha256-RZTGTe18ebqKz8kWOpRgFJO2sR97sVbdPQMW/XLHs68="; 25 + hash = "sha256-SF/UF84K9kNtLHO9FDuIFdQId0NfbmRiRZiPrOKvE9o="; 27 26 }; 28 27 29 - patches = [ 30 - # Fix compatibility with Exiv2 0.28.0 31 - # Remove when version > 0.6.2 32 - (fetchpatch { 33 - name = "0001-lomiri-ui-extras-Fix-for-exiv2-0.28.0.patch"; 34 - url = "https://gitlab.com/ubports/development/core/lomiri-ui-extras/-/commit/f337ceefa7c4f8f39dc7c75d51df8b86f148891a.patch"; 35 - hash = "sha256-dm50un46eTeBZsyHJF1npGBqOAF1BopJZ1Uln1PqSOE="; 36 - }) 37 - 38 - # Remove deprecated qt5_use_modules usage 39 - # Remove when version > 0.6.2 40 - (fetchpatch { 41 - name = "0002-lomiri-ui-extras-Stop-using-qt5_use_modules.patch"; 42 - url = "https://gitlab.com/ubports/development/core/lomiri-ui-extras/-/commit/df506e7ebe7107dd0465d7d65727753f07abd122.patch"; 43 - hash = "sha256-VmOhJaUgjp9BHoYAO780uxI5tE7F0Gtp9gRNe0QCrhs="; 44 - }) 45 - 46 - # Find qmltestrunner via PATH instead of hardcoded path 47 - # https://gitlab.com/ubports/development/core/lomiri-ui-extras/-/merge_requests/84 48 - (fetchpatch { 49 - name = "0003-lomiri-ui-extras-Dont-insist-on-finding-qmltestrunner-only-at-hardcoded-guess.patch"; 50 - url = "https://gitlab.com/OPNA2608/lomiri-ui-extras/-/commit/b0c4901818761b516a45b7f0524ac713ddf33cfe.patch"; 51 - hash = "sha256-oFeaGiYEDr9XHRlCpXX+0ALlVdfb0FmGBFF1RzIXSBE="; 52 - }) 53 - ]; 54 - 55 28 postPatch = '' 56 29 substituteInPlace modules/Lomiri/Components/Extras{,/{plugin,PamAuthentication}}/CMakeLists.txt \ 57 30 --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" 58 - 59 - # tst_busy_indicator runs into a codepath in lomiri-ui-toolkit that expects a working GL context 60 - sed -i tests/qml/CMakeLists.txt \ 61 - -e '/declare_qml_test("tst_busy_indicator"/d' 62 31 ''; 63 32 64 33 strictDeps = true; ··· 89 58 dontWrapQtApps = true; 90 59 91 60 cmakeFlags = [ 92 - "-DENABLE_TESTS=${lib.boolToString finalAttrs.finalPackage.doCheck}" 61 + (lib.cmakeBool "ENABLE_TESTS" finalAttrs.finalPackage.doCheck) 62 + (lib.cmakeFeature "CMAKE_CTEST_ARGUMENTS" (lib.concatStringsSep ";" [ 63 + # Exclude tests 64 + "-E" (lib.strings.escapeShellArg "(${lib.concatStringsSep "|" [ 65 + # tst_busy_indicator runs into a codepath in lomiri-ui-toolkit that expects a working GL context 66 + "^tst_busy_indicator" 67 + # Photo & PhotoImageProvider Randomly fail, unsure why 68 + "^tst_PhotoEditorPhoto" 69 + ]})") 70 + ])) 93 71 ]; 94 72 95 - # tst_PhotoEditorPhoto and tst_PhotoEditorPhotoImageProvider randomly fail, haven't had time to debug 96 - doCheck = false; 73 + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 97 74 98 75 # Parallelism breaks xvfb-run-launched script for QML tests 99 76 enableParallelChecking = false; ··· 118 95 documentation and/or lack of automated tests. 119 96 ''; 120 97 homepage = "https://gitlab.com/ubports/development/core/lomiri-ui-extras"; 98 + changelog = "https://gitlab.com/ubports/development/core/lomiri-ui-extras/-/blob/${finalAttrs.version}/ChangeLog"; 121 99 license = licenses.gpl3Only; 122 100 maintainers = teams.lomiri.members; 123 101 platforms = platforms.linux;
+5 -18
pkgs/desktops/lomiri/qml/lomiri-ui-toolkit/default.nix
··· 23 23 , qtsvg 24 24 , qtsystems 25 25 , suru-icon-theme 26 + , validatePkgConfig 26 27 , wrapQtAppsHook 27 28 , xvfb-run 28 29 }: ··· 34 35 in 35 36 stdenv.mkDerivation (finalAttrs: { 36 37 pname = "lomiri-ui-toolkit"; 37 - version = "1.3.5011"; 38 + version = "1.3.5012"; 38 39 39 40 src = fetchFromGitLab { 40 41 owner = "ubports"; 41 42 repo = "development/core/lomiri-ui-toolkit"; 42 43 rev = finalAttrs.version; 43 - hash = "sha256-z/EEmC9LjQtBx5MRDLeImxpRrzH4w6v6o+NmqX+L4dw="; 44 + hash = "sha256-Azz2IOm/7XRvDbyIKaYxrkR47evSB17ejtssuEJayPc="; 44 45 }; 45 46 46 47 outputs = [ "out" "dev" ]; ··· 58 59 hash = "sha256-x8Zk7+VBSlM16a3V1yxJqIB63796H0lsS+F4dvR/z80="; 59 60 }) 60 61 61 - # Small fixes to statesaver & tst_imageprovider.11.qml tests 62 - # Remove when version > 1.3.5011 63 - (fetchpatch { 64 - name = "0003-lomiri-ui-toolkit-tests-Minor-fixes.patch"; 65 - url = "https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/commit/a8324d670b813a48ac7d48aa0bc013773047a01d.patch"; 66 - hash = "sha256-W6q3LuQqWmUVSBzORcJsTPoLfbWwytABMDR6JITHrDI="; 67 - }) 68 - 69 - # Fix Qt 5.15.11 compatibility 70 - # Remove when version > 1.3.5011 71 - (fetchpatch { 72 - name = "0004-lomiri-ui-toolkit-Fix-compilation-with-Qt-5.15.11.patch"; 73 - url = "https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/commit/4f999077dc6bc5591bdfede64fd21cb3acdcaac1.patch"; 74 - hash = "sha256-5VCQFOykxgspNBxH94XYuBpdHsH9a3+8FwV6xQE55Xc="; 75 - }) 76 - 77 62 ./2001-Mark-problematic-tests.patch 78 63 (substituteAll { 79 64 src = ./2002-Nixpkgs-versioned-QML-path.patch.in; ··· 136 121 pkg-config 137 122 python3 138 123 qmake 124 + validatePkgConfig 139 125 wrapQtAppsHook 140 126 ]; 141 127 ··· 248 234 - localisation through gettext 249 235 ''; 250 236 homepage = "https://gitlab.com/ubports/development/core/lomiri-ui-toolkit"; 237 + changelog = "https://gitlab.com/ubports/development/core/lomiri-ui-toolkit/-/blob/${finalAttrs.version}/ChangeLog"; 251 238 license = with licenses; [ gpl3Only cc-by-sa-30 ]; 252 239 maintainers = teams.lomiri.members; 253 240 platforms = platforms.linux;
+15 -44
pkgs/desktops/lomiri/services/biometryd/default.nix
··· 18 18 , qtbase 19 19 , qtdeclarative 20 20 , sqlite 21 + , validatePkgConfig 21 22 }: 22 23 23 24 stdenv.mkDerivation (finalAttrs: { 24 25 pname = "biometryd"; 25 - version = "0.3.0"; 26 + version = "0.3.1"; 26 27 27 28 src = fetchFromGitLab { 28 29 owner = "ubports"; 29 30 repo = "development/core/biometryd"; 30 31 rev = finalAttrs.version; 31 - hash = "sha256-b095rsQnd63Ziqe+rn3ROo4LGXZxZ3Sa6h3apzCuyCs="; 32 + hash = "sha256-derU7pKdNf6pwhskaW7gCLcU9ixBG3U0EI/qtANmmTs="; 32 33 }; 33 34 34 35 outputs = [ ··· 36 37 "dev" 37 38 ]; 38 39 39 - patches = [ 40 - # https://gitlab.com/ubports/development/core/biometryd/-/merge_requests/31 41 - (fetchpatch { 42 - url = "https://gitlab.com/OPNA2608/biometryd/-/commit/d01d979e4f98c6473761d1ace308aa182017804e.patch"; 43 - hash = "sha256-JxL3BLuh33ptfneU1y2qNGFKpeMlZlTMwCK97Rk3aTA="; 44 - }) 45 - (fetchpatch { 46 - url = "https://gitlab.com/OPNA2608/biometryd/-/commit/3cec6a3d42ea6aba8892da2c771b317f44daf9e2.patch"; 47 - hash = "sha256-Ij/aio38WmZ+NsUSbM195Gwb83goWIcCnJvGwAOJi50="; 48 - }) 49 - (fetchpatch { 50 - url = "https://gitlab.com/OPNA2608/biometryd/-/commit/e89bd9444bc1cfe84a9aa93faa23057c80f39564.patch"; 51 - hash = "sha256-1vEG349X9+SvY/f3no/l5cMVGpdzC8h/8XOZwL/70Dc="; 52 - }) 53 - 54 - # https://gitlab.com/ubports/development/core/biometryd/-/merge_requests/32 55 - (fetchpatch { 56 - url = "https://gitlab.com/OPNA2608/biometryd/-/commit/9e52fad0139c5a45f69e6a6256b2b5ff54f77740.patch"; 57 - hash = "sha256-DZSdzKq6EYgAllKSDgkGk2g57zHN+gI5fOoj7U5AcKY="; 58 - }) 59 - 60 - # Fix GCC13 & musl compat 61 - # Remove when version > 0.3.0 62 - (fetchpatch { 63 - url = "https://gitlab.com/ubports/development/core/biometryd/-/commit/bc6f1a743dbb0eda6310bd13229f650be62aa3b3.patch"; 64 - hash = "sha256-Pr3zHrMNxTKYHsqHEcVv4fYVknjUwBFRTSuBxZhqUi8="; 65 - }) 66 - ]; 67 - 68 40 postPatch = '' 69 - # Remove with !31 patches, fetchpatch can't apply renames 70 - pushd data 71 - for type in conf service; do 72 - mv biometryd.$type biometryd.$type.in 73 - substituteInPlace biometryd.$type.in \ 74 - --replace '/usr/bin' "\''${CMAKE_INSTALL_FULL_BINDIR}" 75 - done 76 - popd 77 - 78 41 # Uses pkg_get_variable, cannot substitute prefix with that 79 - substituteInPlace CMakeLists.txt \ 80 - --replace 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_UNIT_DIR "${placeholder "out"}/lib/systemd/system")' 42 + substituteInPlace data/CMakeLists.txt \ 43 + --replace 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_UNIT_DIR "''${CMAKE_INSTALL_PREFIX}/lib/systemd/system")' 81 44 82 45 substituteInPlace src/biometry/qml/Biometryd/CMakeLists.txt \ 83 46 --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}" ··· 91 54 cmake 92 55 pkg-config 93 56 qtdeclarative # qmlplugindump 57 + validatePkgConfig 94 58 ]; 95 59 96 60 buildInputs = [ ··· 114 78 dontWrapQtApps = true; 115 79 116 80 cmakeFlags = [ 117 - "-DENABLE_WERROR=OFF" 118 - "-DWITH_HYBRIS=OFF" 81 + # maybe-uninitialized warnings 82 + (lib.cmakeBool "ENABLE_WERROR" false) 83 + (lib.cmakeBool "WITH_HYBRIS" false) 119 84 ]; 120 85 121 86 preBuild = '' ··· 125 90 126 91 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 127 92 93 + passthru = { 94 + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 95 + updateScript = gitUpdater { }; 96 + }; 97 + 128 98 meta = with lib; { 129 99 description = "Mediates/multiplexes access to biometric devices"; 130 100 longDescription = '' ··· 133 103 them for identification and verification of users. 134 104 ''; 135 105 homepage = "https://gitlab.com/ubports/development/core/biometryd"; 106 + changelog = "https://gitlab.com/ubports/development/core/biometryd/-/${finalAttrs.version}/ChangeLog"; 136 107 license = licenses.lgpl3Only; 137 108 maintainers = teams.lomiri.members; 138 109 mainProgram = "biometryd";
+12
pkgs/desktops/lomiri/services/content-hub/default.nix
··· 67 67 url = "https://gitlab.com/ubports/development/core/content-hub/-/commit/3c5ca4a8ec125e003aca78c14521b70140856c25.patch"; 68 68 hash = "sha256-kYN0eLwMyM/9yK+zboyEsoPKZMZ4SCXodVYsvkQr2F8="; 69 69 }) 70 + 71 + # Remove when https://gitlab.com/ubports/development/core/content-hub/-/merge_requests/37 merged & in release 72 + (fetchpatch { 73 + name = "0004-content-hub-Fix-generation-of-transfer_files.patch"; 74 + url = "https://gitlab.com/ubports/development/core/content-hub/-/commit/7ab3a4421356f83515f0deffb5f97a5b38601c13.patch"; 75 + hash = "sha256-MJZm3ny5t0/GX0bd5hGQbPM2k7M4KUvKqce/0cYYgvM="; 76 + }) 77 + (fetchpatch { 78 + name = "0005-content-hub-Fix-generation-of-moc_test_harness.patch"; 79 + url = "https://gitlab.com/ubports/development/core/content-hub/-/commit/6e30f4f10ef90e817ca01d32959b6c782de48955.patch"; 80 + hash = "sha256-TAbYn265RpHpulaRVaHy9XqNF+qoDE7YQIfFMPfqEhw="; 81 + }) 70 82 ]; 71 83 72 84 postPatch = ''
+4 -3
pkgs/desktops/lomiri/services/hfd-service/default.nix
··· 16 16 17 17 stdenv.mkDerivation (finalAttrs: { 18 18 pname = "hfd-service"; 19 - version = "0.2.1"; 19 + version = "0.2.2"; 20 20 21 21 src = fetchFromGitLab { 22 22 owner = "ubports"; 23 23 repo = "development/core/hfd-service"; 24 24 rev = finalAttrs.version; 25 - hash = "sha256-KcHwLTSdo86YCteUsPndoxmLf23SOEhROc5cJQ8GS1Q="; 25 + hash = "sha256-OpT1vNjnyq66v54EoGOZOUb4HECD4WRJRh9hYMB0GI0="; 26 26 }; 27 27 28 28 postPatch = '' ··· 59 59 ]; 60 60 61 61 cmakeFlags = [ 62 - "-DENABLE_LIBHYBRIS=OFF" 62 + (lib.cmakeBool "ENABLE_LIBHYBRIS" false) 63 63 ]; 64 64 65 65 dontWrapQtApps = true; ··· 69 69 meta = with lib; { 70 70 description = "DBus-activated service that manages human feedback devices such as LEDs and vibrators on mobile devices"; 71 71 homepage = "https://gitlab.com/ubports/development/core/hfd-service"; 72 + changelog = "https://gitlab.com/ubports/development/core/hfd-service/-/blob/${finalAttrs.version}/ChangeLog"; 72 73 license = licenses.lgpl3Only; 73 74 maintainers = teams.lomiri.members; 74 75 platforms = platforms.linux;
+10 -14
pkgs/desktops/lomiri/services/history-service/default.nix
··· 19 19 , sqlite 20 20 , telepathy 21 21 , telepathy-mission-control 22 + , validatePkgConfig 22 23 , wrapQtAppsHook 23 24 , xvfb-run 24 25 }: ··· 28 29 in 29 30 stdenv.mkDerivation (finalAttrs: { 30 31 pname = "history-service"; 31 - version = "0.4"; 32 + version = "0.5"; 32 33 33 34 src = fetchFromGitLab { 34 35 owner = "ubports"; 35 36 repo = "development/core/history-service"; 36 37 rev = finalAttrs.version; 37 - hash = "sha256-oCX+moGQewzstbpddEYYp1kQdO2mVXpWJITfvzDzQDI="; 38 + hash = "sha256-m/ytJoHxW0q1vlVKK6Z9ovHzjoiS1AodCSGHTeKygfQ="; 38 39 }; 39 40 40 41 outputs = [ ··· 43 44 ]; 44 45 45 46 patches = [ 46 - # Deprecation warnings with Qt5.15, allow disabling -Werror 47 - # Remove when version > 0.4 48 - (fetchpatch { 49 - url = "https://gitlab.com/ubports/development/core/history-service/-/commit/1370777952c6a2efb85f582ff8ba085c2c0e290a.patch"; 50 - hash = "sha256-Z/dFrFo7WoPZlKto6wNGeWdopsi8iBjmd5ycbqMKgxo="; 51 - }) 52 - 53 47 # Drop deprecated qt5_use_modules usage 54 48 # Remove when https://gitlab.com/ubports/development/core/history-service/-/merge_requests/36 merged & in release 55 49 (fetchpatch { 56 - url = "https://gitlab.com/OPNA2608/history-service/-/commit/b36ab377aca93555b29d1471d6eaa706b5c843ca.patch"; 50 + url = "https://gitlab.com/ubports/development/core/history-service/-/commit/b36ab377aca93555b29d1471d6eaa706b5c843ca.patch"; 57 51 hash = "sha256-mOpXqqd4JI7lHtcWDm9LGCrtB8ERge04jMpHIagDM2k="; 58 52 }) 59 53 60 54 # Add more / correct existing GNUInstallDirs usage 61 55 # Remove when https://gitlab.com/ubports/development/core/history-service/-/merge_requests/37 merged & in release 62 56 (fetchpatch { 63 - url = "https://gitlab.com/OPNA2608/history-service/-/commit/bb4dbdd16e80dcd286d8edfb86b08f0b61bc7fec.patch"; 57 + url = "https://gitlab.com/ubports/development/core/history-service/-/commit/bb4dbdd16e80dcd286d8edfb86b08f0b61bc7fec.patch"; 64 58 hash = "sha256-C/XaygI663yaU06klQD9g0NnbqYxHSmzdbrRxcfiJkk="; 65 59 }) 66 60 67 61 # Correct version information 68 62 # Remove when https://gitlab.com/ubports/development/core/history-service/-/merge_requests/38 merged & in release 69 63 (fetchpatch { 70 - url = "https://gitlab.com/OPNA2608/history-service/-/commit/30d9fbee203205ec1ea8fd19c9b6eb54c080a9e2.patch"; 71 - hash = "sha256-vSZ1ii5Yhw7pB+Pd1pjWnW7JsQxKnn+LeuBKo6qZjQs="; 64 + url = "https://gitlab.com/ubports/development/core/history-service/-/commit/98458126f9f494b124134fb35c198af0545f6a98.patch"; 65 + hash = "sha256-4EfLsaueKTCovl8EilN30cmfNfg19wvyCsbKqOrXtuw="; 72 66 }) 73 67 74 68 # Make tests optional 75 69 # Remove when https://gitlab.com/ubports/development/core/history-service/-/merge_requests/39 merged & in release 76 70 (fetchpatch { 77 - url = "https://gitlab.com/OPNA2608/history-service/-/commit/cb5c80cffc35611657244e15a7eb10edcd598ccd.patch"; 71 + url = "https://gitlab.com/ubports/development/core/history-service/-/commit/cb5c80cffc35611657244e15a7eb10edcd598ccd.patch"; 78 72 hash = "sha256-MFHGu4OMScdThq9htUgFMpezP7Ym6YTIZUHWol20wqw="; 79 73 }) 80 74 ]; ··· 131 125 cmake 132 126 pkg-config 133 127 sqlite 128 + validatePkgConfig 134 129 wrapQtAppsHook 135 130 ]; 136 131 ··· 193 188 Database location: ~/.local/share/history-service/history.sqlite 194 189 ''; 195 190 homepage = "https://gitlab.com/ubports/development/core/history-service"; 191 + changelog = "https://gitlab.com/ubports/development/core/history-service/-/blob/${finalAttrs.version}/ChangeLog"; 196 192 license = licenses.gpl3Only; 197 193 maintainers = teams.lomiri.members; 198 194 platforms = platforms.linux;
+15 -36
pkgs/desktops/lomiri/services/lomiri-download-manager/default.nix
··· 9 9 , cmake-extras 10 10 , dbus 11 11 , dbus-test-runner 12 - , withDocumentation ? true 12 + # Needs qdoc, https://github.com/NixOS/nixpkgs/pull/245379 13 + , withDocumentation ? false 13 14 , doxygen 14 15 , glog 15 16 , graphviz ··· 19 20 , python3 20 21 , qtbase 21 22 , qtdeclarative 23 + , validatePkgConfig 22 24 , wrapQtAppsHook 23 25 , xvfb-run 24 26 }: 25 27 26 28 stdenv.mkDerivation (finalAttrs: { 27 29 pname = "lomiri-download-manager"; 28 - version = "0.1.2"; 30 + version = "0.1.3"; 29 31 30 32 src = fetchFromGitLab { 31 33 owner = "ubports"; 32 34 repo = "development/core/lomiri-download-manager"; 33 35 rev = finalAttrs.version; 34 - hash = "sha256-a9C+hactBMHMr31E+ImKDPgpzxajy1klkjDcSEkPHqI="; 36 + hash = "sha256-LhhO/zZ4wNiRd235NB2b08SQcCZt1awN/flcsLs2m8U="; 35 37 }; 36 38 37 39 outputs = [ ··· 42 44 ]; 43 45 44 46 patches = [ 45 - # Remove when version > 0.1.2 46 - (fetchpatch { 47 - name = "0001-lomiri-download-manager-Make-documentation-build-optional.patch"; 48 - url = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/commit/32d7369714c01bd425af9c6de5bdc04399a12e0a.patch"; 49 - hash = "sha256-UztcBAAFXDX2j0X5D3kMp9q0vFm3/PblUAKPJ5nZyiY="; 50 - }) 51 - 52 - # Remove when version > 0.1.2 47 + # This change seems incomplete, potentially breaks things on systems that don't use AppArmor mediation 48 + # https://gitlab.com/ubports/development/core/lomiri-download-manager/-/merge_requests/24#note_1746801673 53 49 (fetchpatch { 54 - name = "0002-lomiri-download-manager-Upgrade-C++-standard-to-C++17.patch"; 55 - url = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/commit/a6bc7ae80f2ff4c4743978c6c694149707d9d2e2.patch"; 56 - hash = "sha256-iA1sZhHI8Osgo1ofL5RTqgVzUG32zx0dU/28qcEqmQc="; 57 - }) 58 - 59 - # Remove when version > 0.1.2 60 - (fetchpatch { 61 - name = "0003-lomiri-download-manager-Bump-version-make-Werror-and-tests-optional.patch"; 62 - url = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/commit/73ec04c429e5285f05dd72d5bb9720ba6ff31be2.patch"; 63 - hash = "sha256-0BrJSKCvUhITwfln05OrHgHEpldbgBoh4rivAvw+qrc="; 64 - }) 65 - 66 - # Remove when version > 0.1.2 67 - (fetchpatch { 68 - name = "0004-lomiri-download-manager-Use-GNUInstallDirs-variables-for-more-install-destinations.patch"; 69 - url = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/commit/5d40daf053de62150aa5ee618285e415d7d3f1c8.patch"; 70 - hash = "sha256-r5fpiJkZkDsYX9fcX5JuPsE/qli9z5/DatmGJ9/QauU="; 50 + name = "0001-lomiri-download-manager-Revert-Drop-GetConnectionAppArmorSecurityContext.patch"; 51 + url = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/commit/2367f3dff852b69457b1a65a487cb032c210569f.patch"; 52 + revert = true; 53 + hash = "sha256-xS0Wz6d+bZWj/kDGK2WhOduzyP4Rgz3n9n2XY1Zu5hE="; 71 54 }) 72 55 ]; 73 56 74 57 postPatch = '' 75 - # fetchpatch strips renames 76 - # Remove when version > 0.1.2 77 - for service in src/{uploads,downloads}/daemon/{lomiri-*-manager,lomiri-*-manager-systemd,com.lomiri.*}.service; do 78 - mv "$service" "$service".in 79 - done 80 - 81 58 # pkg_get_variable doesn't let us substitute prefix pkg-config variable from systemd 82 59 substituteInPlace CMakeLists.txt \ 83 60 --replace 'pkg_get_variable(SYSTEMD_USER_DIR systemd systemduserunitdir)' 'set(SYSTEMD_USER_DIR "${placeholder "out"}/lib/systemd/user")' \ ··· 89 66 nativeBuildInputs = [ 90 67 cmake 91 68 pkg-config 69 + validatePkgConfig 92 70 wrapQtAppsHook 93 71 ] ++ lib.optionals withDocumentation [ 94 72 doxygen ··· 116 94 ]; 117 95 118 96 cmakeFlags = [ 119 - "-DENABLE_DOC=${lib.boolToString withDocumentation}" 97 + (lib.cmakeBool "ENABLE_DOC" withDocumentation) 120 98 # Deprecation warnings on Qt 5.15 121 99 # https://gitlab.com/ubports/development/core/lomiri-download-manager/-/issues/1 122 - "-DENABLE_WERROR=OFF" 100 + (lib.cmakeBool "ENABLE_WERROR" false) 123 101 ]; 124 102 125 103 makeTargets = [ ··· 146 124 meta = with lib; { 147 125 description = "Performs uploads and downloads from a centralized location"; 148 126 homepage = "https://gitlab.com/ubports/development/core/lomiri-download-manager"; 127 + changelog = "https://gitlab.com/ubports/development/core/lomiri-download-manager/-/blob/${finalAttrs.version}/ChangeLog"; 149 128 license = licenses.lgpl3Only; 150 129 maintainers = teams.lomiri.members; 151 130 platforms = platforms.linux;
+5 -19
pkgs/desktops/lomiri/services/lomiri-indicator-network/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitLab 4 - , fetchpatch 5 4 , gitUpdater 6 5 , nixosTests 7 6 , testers ··· 27 26 , python3 28 27 , qtdeclarative 29 28 , qtbase 29 + , validatePkgConfig 30 30 }: 31 31 32 32 stdenv.mkDerivation (finalAttrs: { 33 33 pname = "lomiri-indicator-network"; 34 - version = "1.0.1"; 34 + version = "1.0.2"; 35 35 36 36 src = fetchFromGitLab { 37 37 owner = "ubports"; 38 38 repo = "development/core/lomiri-indicator-network"; 39 39 rev = finalAttrs.version; 40 - hash = "sha256-rJKWhW082ndVPEQHjuSriKtl0zQw86adxiINkZQq1hY="; 40 + hash = "sha256-9AQCWCZFbt4XcmKsjoTXJlWOm02/kBhpPxbHRtftNFM="; 41 41 }; 42 42 43 43 outputs = [ ··· 46 46 "doc" 47 47 ]; 48 48 49 - patches = [ 50 - # Remove when version > 1.0.1 51 - (fetchpatch { 52 - name = "0001-lomiri-indicator-network-Make-less-assumptions-about-where-files-will-end-up.patch"; 53 - url = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/commit/065212b22ab9aa8d25a61b5482ad6511e4c8510b.patch"; 54 - hash = "sha256-WrDTBKusK1808W8LZRGWaTOExu7gKpYBvkQ8hzoHoHk="; 55 - }) 56 - 57 - # Remove when version > 1.0.1 58 - (fetchpatch { 59 - name = "0002-lomiri-indicator-network-Honour-CMAKE_INSTALL_DOCDIR_fordocumentation-installation.patch"; 60 - url = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/commit/79b9e12313f765ab6e95b4d4dfefbdbca50ef3c6.patch"; 61 - hash = "sha256-vRfdegEi892UlrC9c1+5Td7CHLh7u0foPggLNBfc8lw="; 62 - }) 63 - ]; 64 - 65 49 postPatch = '' 66 50 # Queried via pkg-config, would need to override a prefix variable 67 51 # Needs CMake 3.28 or higher to do as part of the call, https://github.com/NixOS/nixpkgs/pull/275284 ··· 79 63 intltool 80 64 pkg-config 81 65 qtdeclarative 66 + validatePkgConfig 82 67 ]; 83 68 84 69 buildInputs = [ ··· 138 123 meta = with lib; { 139 124 description = "Ayatana indiator exporting the network settings menu through D-Bus"; 140 125 homepage = "https://gitlab.com/ubports/development/core/lomiri-indicator-network"; 126 + changelog = "https://gitlab.com/ubports/development/core/lomiri-indicator-network/-/blob/${finalAttrs.version}/ChangeLog"; 141 127 license = licenses.gpl3Only; 142 128 maintainers = teams.lomiri.members; 143 129 platforms = platforms.linux;
+9 -30
pkgs/desktops/lomiri/services/lomiri-thumbnailer/default.nix
··· 31 31 32 32 stdenv.mkDerivation (finalAttrs: { 33 33 pname = "lomiri-thumbnailer"; 34 - version = "3.0.2"; 34 + version = "3.0.3"; 35 35 36 36 src = fetchFromGitLab { 37 37 owner = "ubports"; 38 38 repo = "development/core/lomiri-thumbnailer"; 39 39 rev = finalAttrs.version; 40 - hash = "sha256-AZoXTE4ix/NDBSwPJcod+cMNnfrCxFj5IzxCWxh6uq0="; 40 + hash = "sha256-BE/U4CT4z4WzEJXrVhX8ME/x9q7w8wNnJKTbfVku2VQ="; 41 41 }; 42 42 43 43 outputs = [ ··· 47 47 ]; 48 48 49 49 patches = [ 50 - # Remove when version > 3.0.2 51 - (fetchpatch { 52 - name = "0001-lomiri-thumbnailer-Stop-using-qt5_use_modules.patch"; 53 - url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/a0d81863f3f48717507cfa181030a8ffb0c4e881.patch"; 54 - hash = "sha256-B0935Hve5zYA3aUqr0RUtJsOAsfDAF/L7/20F4I+5s0="; 55 - }) 56 - 57 50 # Remove when https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/merge_requests/19 merged & in release 58 51 (fetchpatch { 59 - name = "0002-lomiri-thumbnailer-Add-more-better-GNUInstallDirs-variables-usage.patch"; 52 + name = "0001-lomiri-thumbnailer-Add-more-better-GNUInstallDirs-variables-usage.patch"; 60 53 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/0b9795a6313fd025d5646f2628a2cbb3104b0ebc.patch"; 61 54 hash = "sha256-br99n2nDLjUfnjbjhOsWlvP62VmVjYeZ6yPs1dhPN/s="; 62 55 }) 63 56 64 - # Remove when version > 3.0.2 65 - (fetchpatch { 66 - name = "0003-lomiri-thumbnailer-Fix-check-for-No-such-file-or-directory-error.patch"; 67 - url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/de8f9175830581e9180ed789b92dffbb08dfe436.patch"; 68 - hash = "sha256-JHoYTATbR8NTsVU2+8+R2sCSU6ZDLyKgmdbt4VZPv3Q="; 69 - }) 70 - 71 - # Remove when version > 3.0.2 72 - (fetchpatch { 73 - name = "0004-lomiri-thumbnailer-tests-headers-CMakelists.txt-Remove-extra-slash-in-include-paths.patch"; 74 - url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/3598fdc84ded8241f273c89c95371d4675690e38.patch"; 75 - hash = "sha256-Sonjc/a6hfuXhaus2scfmPfgIYWxsRD/1/IIACLqsBA="; 76 - }) 77 - 78 57 # Remove when https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/merge_requests/22 merged & in release 79 58 (fetchpatch { 80 - name = "0005-lomiri-thumbnailer-Make-tests-optional.patch"; 59 + name = "0002-lomiri-thumbnailer-Make-tests-optional.patch"; 81 60 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/df7a3d1689f875d207a90067b957e888160491b9.patch"; 82 61 hash = "sha256-gVxigpSL/3fXNdJBjh8Ex3/TYmQUiwRji/NmLW/uhE4="; 83 62 }) 84 63 85 64 # Remove when https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/merge_requests/23 merged & in release 86 65 (fetchpatch { 87 - name = "0006-lomiri-thumbnailer-doc-liblomiri-thumbnailer-qt-Honour-CMAKE_INSTALL_DOCDIR.patch"; 66 + name = "0003-lomiri-thumbnailer-doc-liblomiri-thumbnailer-qt-Honour-CMAKE_INSTALL_DOCDIR.patch"; 88 67 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/930a3b57e899f6eb65a96d096edaea6a6f6b242a.patch"; 89 68 hash = "sha256-klYycUoQqA+Dfk/4fRQgdS4/G4o0sC1k98mbtl0iHkE="; 90 69 }) 91 70 (fetchpatch { 92 - name = "0007-lomiri-thumbnailer-Re-enable-documentation.patch"; 71 + name = "0004-lomiri-thumbnailer-Re-enable-documentation.patch"; 93 72 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/2f9186f71fdd25e8a0852073f1da59ba6169cf3f.patch"; 94 73 hash = "sha256-youaJfCeYVpLmruHMupuUdl0c/bSDPWqKPLgu5plBrw="; 95 74 }) 96 75 (fetchpatch { 97 - name = "0008-lomiri-thumbnailer-doc-liblomiri-thumbnailer-qt-examples-Drop-qt5_use_modules-usage.patch"; 76 + name = "0005-lomiri-thumbnailer-doc-liblomiri-thumbnailer-qt-examples-Drop-qt5_use_modules-usage.patch"; 98 77 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/9e5cf09de626e73e6b8f180cbc1160ebd2f169e7.patch"; 99 78 hash = "sha256-vfNCN7tqq6ngzNmb3qqHDHaDx/kI8/UXyyv7LqUWya0="; 100 79 }) 101 80 (fetchpatch { 102 - name = "0009-lomiri-thumbnailer-Re-enable-coverge-reporting.patch"; 81 + name = "0006-lomiri-thumbnailer-Re-enable-coverge-reporting.patch"; 103 82 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/6a48831f042cd3ad34200f32800393d4eec2f84b.patch"; 104 83 hash = "sha256-HZd4K0R1W6adOjKy7tODfQAD+9IKPcK0DnH1uKNd/Ak="; 105 84 }) 106 85 (fetchpatch { 107 - name = "0010-lomiri-thumbnailer-Make-GTest-available-to-example-test.patch"; 86 + name = "0007-lomiri-thumbnailer-Make-GTest-available-to-example-test.patch"; 108 87 url = "https://gitlab.com/ubports/development/core/lomiri-thumbnailer/-/commit/657be3bd1aeb227edc04e26b597b2fe97b2dc51a.patch"; 109 88 hash = "sha256-XEvdWV3JJujG16+87iewYor0jFK7NTeE5459iT96SkU="; 110 89 })
+3 -33
pkgs/desktops/lomiri/services/telephony-service/default.nix
··· 42 42 in 43 43 stdenv.mkDerivation (finalAttrs: { 44 44 pname = "telephony-service"; 45 - version = "0.5.2"; 45 + version = "0.5.3"; 46 46 47 47 src = fetchFromGitLab { 48 48 owner = "ubports"; 49 49 repo = "development/core/telephony-service"; 50 50 rev = finalAttrs.version; 51 - hash = "sha256-9KxM8UWTIBpMMPosar2ZV9W35WmCLIWXD1ulWtqCKxM="; 51 + hash = "sha256-eLGwAJmBDDvSODQUNr/zcPA/0DdXtVBiS7vg+iIYPDo="; 52 52 }; 53 53 54 54 patches = [ 55 - # Remove when version > 0.5.2 56 - (fetchpatch { 57 - name = "0001-telephony-service-CMakeLists-Fix-Cross-conditional-for-QT_INSTALL_QML-determining.patch"; 58 - url = "https://gitlab.com/ubports/development/core/telephony-service/-/commit/c19463444af257c263f35127284d9787f3522f1f.patch"; 59 - hash = "sha256-Dr/uev/z4pEiV4/QRmQ15+6wrD8rh+8vRcfWIi8FBCU="; 60 - }) 61 - 62 - # Remove when version > 0.5.2 63 - (fetchpatch { 64 - name = "0002-telephony-service-tests-libtelephonyservice-CMakeLists-Fix-ProtocolTest-build.patch"; 65 - url = "https://gitlab.com/ubports/development/core/telephony-service/-/commit/d8f0f38f8b723569c03d601ac803b079ed51d09e.patch"; 66 - hash = "sha256-asDEzh8Yg6LXl6fdwan6IhwLEuzmDfmHI+pjpxJRbeE="; 67 - }) 68 - 69 - # Remove when https://gitlab.com/ubports/development/core/telephony-service/-/merge_requests/89 merged & in release 70 - (fetchpatch2 { 71 - name = "0003-telephony-service-Add-more-better-GNUInstallDirs-variables-usage.patch"; 72 - url = "https://gitlab.com/ubports/development/core/telephony-service/-/commit/9a35a50c587ebfdfb1e08b54ffec0d2e6fef1950.patch"; 73 - hash = "sha256-jGeJlwbyVr0WkyGKY7Lw5dY/V9yN43DpZmuli6oRho0="; 74 - }) 75 - 76 55 # Remove when https://gitlab.com/ubports/development/core/telephony-service/-/merge_requests/90 merged & in release 77 56 (fetchpatch { 78 - name = "0004-telephony-service-CMakeLists-Make-tests-optional.patch"; 57 + name = "0001-telephony-service-CMakeLists-Make-tests-optional.patch"; 79 58 url = "https://gitlab.com/ubports/development/core/telephony-service/-/commit/9a8297bcf9b34d77ffdae3dfe4ad2636022976fb.patch"; 80 59 hash = "sha256-Za4ZGKnw9iz2RP1LzLhKrEJ1vLUufWk8J07LmWDW40E="; 81 - }) 82 - 83 - # libphonenumber -> protobuf -> abseil-cpp demands C++14 84 - # But uses std::string_view which is C++17? 85 - # Remove when version > 0.5.2 86 - (fetchpatch { 87 - name = "0005-telephony-service-Upgrade-C++-standard-to-C++17.patch"; 88 - url = "https://gitlab.com/ubports/development/core/telephony-service/-/commit/b77349acb4ab3f857a55481eeaf2af1dcecfb775.patch"; 89 - hash = "sha256-vNtelYu/I9lv8EkNn8gB6zNgLJ24Znp9HYmLG9olFe8="; 90 60 }) 91 61 ]; 92 62