Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lomiri.lomiri-settings-components: init at 1.1.0 #259238

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkgs/desktops/lomiri/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ let
libusermetrics = callPackage ./development/libusermetrics { };
lomiri-api = callPackage ./development/lomiri-api { };

#### QML / QML-related
lomiri-settings-components = callPackage ./qml/lomiri-settings-components { };

#### Services
biometryd = callPackage ./services/biometryd { };
};
Expand Down
65 changes: 65 additions & 0 deletions pkgs/desktops/lomiri/qml/lomiri-settings-components/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, cmake
, cmake-extras
, pkg-config
, python3
, qtbase
, qtdeclarative
}:

stdenv.mkDerivation (finalAttrs: {
pname = "lomiri-settings-components";
version = "1.1.0";

src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/lomiri-settings-components";
rev = finalAttrs.version;
hash = "sha256-13uxUBM+uOmt8X0uLGWNP8YbwCdb2QCChB8IP3td5a4=";
};

postPatch = ''
patchShebangs tests/imports/check_imports.py

substituteInPlace CMakeLists.txt \
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" '${placeholder "out"}/${qtbase.qtQmlPrefix}'
'' + lib.optionalString (!finalAttrs.doCheck) ''
sed -i CMakeLists.txt \
-e '/add_subdirectory(tests)/d'
'';

strictDeps = true;

nativeBuildInputs = [
cmake
pkg-config
];

buildInputs = [
cmake-extras
qtbase
qtdeclarative
];

nativeCheckInputs = [
python3
];

# No apps, just QML components
dontWrapQtApps = true;

doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

passthru.updateScript = gitUpdater { };

meta = with lib; {
description = "QML settings components for the Lomiri Desktop Environment";
homepage = "https://gitlab.com/ubports/development/core/lomiri-settings-components";
license = licenses.lgpl3Only;
maintainers = teams.lomiri.members;
platforms = platforms.linux;
};
})