about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/kquickimageedit/default.nix
blob: cd43904a123e9ba99afc16d173b58c242d3c932c (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
{ lib
, stdenv
, fetchFromGitLab
, extra-cmake-modules
, qtbase
, qtdeclarative
}:

stdenv.mkDerivation rec {
  pname = "kquickimageeditor";
  version = "0.3.0";

  src = fetchFromGitLab {
    domain = "invent.kde.org";
    owner = "libraries";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-+BByt07HMb4u6j9bVZqkUPvyRaElKvJ2MjKlPakL87E=";
  };

  nativeBuildInputs = [ extra-cmake-modules ];
  buildInputs = [ qtbase qtdeclarative ];
  cmakeFlags = ["-DQT_MAJOR_VERSION=${lib.versions.major qtbase.version}"];
  dontWrapQtApps = true;

  meta = with lib; {
    description = "Set of QtQuick components providing basic image editing capabilities";
    homepage = "https://invent.kde.org/libraries/kquickimageeditor";
    license = licenses.lgpl21Plus;
    platforms = platforms.unix;
    badPlatforms = platforms.darwin;
  };
}