nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at r-updates 51 lines 961 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 qttools, 7 qtbase, 8 qtsvg, 9 kcolorpicker, 10}: 11 12let 13 isQt6 = lib.versions.major qtbase.version == "6"; 14in 15stdenv.mkDerivation rec { 16 pname = "kimageannotator"; 17 version = "0.7.2"; 18 19 src = fetchFromGitHub { 20 owner = "ksnip"; 21 repo = "kImageAnnotator"; 22 rev = "v${version}"; 23 hash = "sha256-SKNNsBXmaS0ZnbMP7cKSfr+MM+ICdvYQ0k2h5s9SDcE="; 24 }; 25 26 nativeBuildInputs = [ 27 cmake 28 qttools 29 ]; 30 buildInputs = [ 31 qtbase 32 qtsvg 33 ]; 34 propagatedBuildInputs = [ kcolorpicker ]; 35 36 cmakeFlags = [ 37 (lib.cmakeBool "BUILD_WITH_QT6" isQt6) 38 (lib.cmakeBool "BUILD_SHARED_LIBS" true) 39 ]; 40 41 # Library only 42 dontWrapQtApps = true; 43 44 meta = { 45 description = "Tool for annotating images"; 46 homepage = "https://github.com/ksnip/kImageAnnotator"; 47 license = lib.licenses.lgpl3Plus; 48 maintainers = with lib.maintainers; [ fliegendewurst ]; 49 platforms = lib.platforms.linux; 50 }; 51}