1 { lib, stdenv, fetchFromGitHub, cmake, qttools, qtbase, qtsvg, kcolorpicker }:
4 isQt6 = lib.versions.major qtbase.version == "6";
5 in stdenv.mkDerivation rec {
6 pname = "kimageannotator";
9 src = fetchFromGitHub {
11 repo = "kImageAnnotator";
13 hash = "sha256-LFou8gTF/XDBLNQbA4uurYJHQl7yOTKe2OGklUsmPrg=";
16 nativeBuildInputs = [ cmake qttools ];
17 buildInputs = [ qtbase qtsvg ];
18 propagatedBuildInputs = [ kcolorpicker ];
21 (lib.cmakeBool "BUILD_WITH_QT6" isQt6)
22 (lib.cmakeBool "BUILD_SHARED_LIBS" true)
26 dontWrapQtApps = true;
29 description = "Tool for annotating images";
30 homepage = "https://github.com/ksnip/kImageAnnotator";
31 license = licenses.lgpl3Plus;
32 maintainers = with maintainers; [ fliegendewurst ];
33 platforms = platforms.linux;