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