Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
70 lines
1.5 KiB
Nix
70 lines
1.5 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitLab,
|
|
gitUpdater,
|
|
cmake,
|
|
cmake-extras,
|
|
pkg-config,
|
|
python3,
|
|
qtbase,
|
|
qtdeclarative,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "lomiri-settings-components";
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "ubports";
|
|
repo = "development/core/lomiri-settings-components";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-H7G3dzzitdyahB/MwgtfRBpo+qMOhmQSzN4EGYculks=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs tests/imports/check_imports.py
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" '${placeholder "out"}/${qtbase.qtQmlPrefix}'
|
|
''
|
|
+ lib.optionalString (!finalAttrs.finalPackage.doCheck) ''
|
|
sed -i CMakeLists.txt \
|
|
-e '/add_subdirectory(tests)/d'
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
qtdeclarative
|
|
];
|
|
|
|
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";
|
|
changelog = "https://gitlab.com/ubports/development/core/lomiri-settings-components/-/blob/${finalAttrs.version}/ChangeLog";
|
|
license = licenses.lgpl3Only;
|
|
teams = [ teams.lomiri ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|