Files
nixpkgs/pkgs/development/libraries/kimageannotator/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
961 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
qttools,
qtbase,
qtsvg,
kcolorpicker,
}:
let
isQt6 = lib.versions.major qtbase.version == "6";
in
stdenv.mkDerivation rec {
pname = "kimageannotator";
version = "0.7.2";
src = fetchFromGitHub {
owner = "ksnip";
repo = "kImageAnnotator";
rev = "v${version}";
hash = "sha256-SKNNsBXmaS0ZnbMP7cKSfr+MM+ICdvYQ0k2h5s9SDcE=";
};
nativeBuildInputs = [
cmake
qttools
];
buildInputs = [
qtbase
qtsvg
];
propagatedBuildInputs = [ kcolorpicker ];
cmakeFlags = [
(lib.cmakeBool "BUILD_WITH_QT6" isQt6)
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
];
# Library only
dontWrapQtApps = true;
meta = {
description = "Tool for annotating images";
homepage = "https://github.com/ksnip/kImageAnnotator";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ fliegendewurst ];
platforms = lib.platforms.linux;
};
}