lomiri.qqc2-suru-style: nixfmt, modernise abit

This commit is contained in:
OPNA2608 2024-10-11 19:18:30 +02:00
parent 7fa8326005
commit 127dfa6fd3

View File

@ -1,10 +1,11 @@
{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, qmake
, qtdeclarative
, qtquickcontrols2
{
stdenv,
lib,
fetchFromGitLab,
gitUpdater,
qmake,
qtdeclarative,
qtquickcontrols2,
}:
stdenv.mkDerivation (finalAttrs: {
@ -14,16 +15,14 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/qqc2-suru-style";
rev = finalAttrs.version;
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-kAgHsNWwUWxHg26bTMmlq8m9DR4+ob4pl/oUX7516hM=";
};
# QMake can't find Qt modules from buildInputs
strictDeps = false;
nativeBuildInputs = [
qmake
];
nativeBuildInputs = [ qmake ];
buildInputs = [
qtdeclarative
@ -34,12 +33,16 @@ stdenv.mkDerivation (finalAttrs: {
passthru.updateScript = gitUpdater { };
meta = with lib; {
meta = {
description = "Suru Style for QtQuick Controls 2";
homepage = "https://gitlab.com/ubports/development/core/qqc2-suru-style";
changelog = "https://gitlab.com/ubports/development/core/qqc2-suru-style/-/blob/${finalAttrs.version}/ChangeLog";
license = with licenses; [ gpl2Plus lgpl3Only cc-by-sa-30 ];
maintainers = teams.lomiri.members;
platforms = platforms.unix;
license = with lib.licenses; [
gpl2Plus
lgpl3Only
cc-by-sa-30
];
maintainers = lib.teams.lomiri.members;
platforms = lib.platforms.unix;
};
})