biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / desktops / lomiri / qml / lomiri-settings-components / default.nix
blob09fbe7d9b6eb52af89e1c43f53a076ed831b1ba2
1 { stdenv
2 , lib
3 , fetchFromGitLab
4 , gitUpdater
5 , cmake
6 , cmake-extras
7 , pkg-config
8 , python3
9 , qtbase
10 , qtdeclarative
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "lomiri-settings-components";
15   version = "1.1.1";
17   src = fetchFromGitLab {
18     owner = "ubports";
19     repo = "development/core/lomiri-settings-components";
20     rev = finalAttrs.version;
21     hash = "sha256-2Wyh+2AW6EeKRv26D4l+GIoH5sWC9SmOODNHOveFZPg=";
22   };
24   postPatch = ''
25     patchShebangs tests/imports/check_imports.py
27     substituteInPlace CMakeLists.txt \
28       --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" '${placeholder "out"}/${qtbase.qtQmlPrefix}'
29   '' + lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
30     sed -i CMakeLists.txt \
31       -e '/add_subdirectory(tests)/d'
32   '';
34   strictDeps = true;
36   nativeBuildInputs = [
37     cmake
38     pkg-config
39     qtdeclarative
40   ];
42   buildInputs = [
43     cmake-extras
44     qtbase
45     qtdeclarative
46   ];
48   nativeCheckInputs = [
49     python3
50   ];
52   # No apps, just QML components
53   dontWrapQtApps = true;
55   doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
57   passthru.updateScript = gitUpdater { };
59   meta = with lib; {
60     description = "QML settings components for the Lomiri Desktop Environment";
61     homepage = "https://gitlab.com/ubports/development/core/lomiri-settings-components";
62     changelog = "https://gitlab.com/ubports/development/core/lomiri-settings-components/-/blob/${finalAttrs.version}/ChangeLog";
63     license = licenses.lgpl3Only;
64     maintainers = teams.lomiri.members;
65     platforms = platforms.linux;
66   };