1{ lib
2, stdenv
3, fetchFromGitLab
4, extra-cmake-modules
5, qtbase
6, qtdeclarative
7}:
8
9stdenv.mkDerivation rec {
10 pname = "kquickimageeditor";
11 version = "0.3.0";
12
13 src = fetchFromGitLab {
14 domain = "invent.kde.org";
15 owner = "libraries";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "sha256-+BByt07HMb4u6j9bVZqkUPvyRaElKvJ2MjKlPakL87E=";
19 };
20
21 nativeBuildInputs = [ extra-cmake-modules ];
22 buildInputs = [ qtbase qtdeclarative ];
23 cmakeFlags = ["-DQT_MAJOR_VERSION=${lib.versions.major qtbase.version}"];
24 dontWrapQtApps = true;
25
26 meta = with lib; {
27 description = "Set of QtQuick components providing basic image editing capabilities";
28 homepage = "https://invent.kde.org/libraries/kquickimageeditor";
29 license = licenses.lgpl21Plus;
30 platforms = platforms.unix;
31 badPlatforms = platforms.darwin;
32 };
33}