2024-02-28 12:00:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, qttools, qtbase, qtsvg, kcolorpicker }:
|
2021-07-12 10:45:40 +00:00
|
|
|
|
2024-02-28 12:00:45 +00:00
|
|
|
let
|
|
|
|
isQt6 = lib.versions.major qtbase.version == "6";
|
|
|
|
in stdenv.mkDerivation rec {
|
2021-07-12 10:45:40 +00:00
|
|
|
pname = "kimageannotator";
|
2024-03-11 10:02:11 +00:00
|
|
|
version = "0.7.1";
|
2021-07-12 10:45:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ksnip";
|
|
|
|
repo = "kImageAnnotator";
|
|
|
|
rev = "v${version}";
|
2024-03-11 10:02:11 +00:00
|
|
|
hash = "sha256-LFou8gTF/XDBLNQbA4uurYJHQl7yOTKe2OGklUsmPrg=";
|
2021-07-12 10:45:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake qttools ];
|
2024-02-28 12:00:45 +00:00
|
|
|
buildInputs = [ qtbase qtsvg ];
|
|
|
|
propagatedBuildInputs = [ kcolorpicker ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeBool "BUILD_WITH_QT6" isQt6)
|
|
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
|
|
|
];
|
|
|
|
|
|
|
|
# Library only
|
|
|
|
dontWrapQtApps = true;
|
2021-07-12 10:45:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for annotating images";
|
|
|
|
homepage = "https://github.com/ksnip/kImageAnnotator";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ fliegendewurst ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|