lomiri.lomiri-settings-components: init at 1.0.1
This commit is contained in:
parent
d71187cf33
commit
55b53ee558
2 changed files with 68 additions and 0 deletions
|
@ -18,6 +18,9 @@ let
|
||||||
libusermetrics = callPackage ./development/libusermetrics { };
|
libusermetrics = callPackage ./development/libusermetrics { };
|
||||||
lomiri-api = callPackage ./development/lomiri-api { };
|
lomiri-api = callPackage ./development/lomiri-api { };
|
||||||
|
|
||||||
|
#### QML / QML-related
|
||||||
|
lomiri-settings-components = callPackage ./qml/lomiri-settings-components { };
|
||||||
|
|
||||||
#### Services
|
#### Services
|
||||||
biometryd = callPackage ./services/biometryd { };
|
biometryd = callPackage ./services/biometryd { };
|
||||||
};
|
};
|
||||||
|
|
|
@ -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.0.1";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "ubports";
|
||||||
|
repo = "development/core/lomiri-settings-components";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-Ybg+qyecvhPUDoIoq+0194u57imx7SxDMEmufGN22jM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue