about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/lomiri/qml/qqc2-suru-style/default.nix
blob: 5717ae35f1139350c8cb1273de216583118ab746 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, qmake
, qtdeclarative
, qtquickcontrols2
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "qqc2-suru-style";
  version = "0.20230206";

  src = fetchFromGitLab {
    owner = "ubports";
    repo = "development/core/qqc2-suru-style";
    rev = finalAttrs.version;
    hash = "sha256-ZLPuXnhlR1IDhGnprcdWHLnOeS6ZzVkFhQML0iKMjO8=";
  };

  # QMake can't find Qt modules from buildInputs
  strictDeps = false;

  nativeBuildInputs = [
    qmake
  ];

  buildInputs = [
    qtdeclarative
    qtquickcontrols2
  ];

  dontWrapQtApps = true;

  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    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;
  };
})