2024-02-29 20:09:43 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, qttools, qtbase, qtsvg, kcolorpicker }:
|
2021-07-16 19:40:57 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
let
|
|
|
|
isQt6 = lib.versions.major qtbase.version == "6";
|
|
|
|
in stdenv.mkDerivation rec {
|
2021-07-16 19:40:57 +00:00
|
|
|
pname = "kimageannotator";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.7.0";
|
2021-07-16 19:40:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ksnip";
|
|
|
|
repo = "kImageAnnotator";
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-Dq9CM/D3nA7MaY9rfwqF/UAw/+1ptKLf3P8jhFdngKk=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake qttools ];
|
2024-02-29 20:09:43 +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-16 19:40:57 +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;
|
|
|
|
};
|
|
|
|
}
|