ksnip: fix build with versioned kImageAnnotator

K900 f922d827 a06fbd06

+13
+13
pkgs/tools/misc/ksnip/default.nix
··· 3 3 , cmake 4 4 , extra-cmake-modules 5 5 , fetchFromGitHub 6 + , fetchpatch 6 7 , kcolorpicker 7 8 , kimageannotator 8 9 , wrapQtAppsHook ··· 21 22 rev = "v${version}"; 22 23 sha256 = "sha256-n7YwDXd73hyrzb6L8utZFuHh9HnjVtkU6CC4jfWPj/I="; 23 24 }; 25 + 26 + patches = [ 27 + # Fix build with latest kImageAnnotator 28 + (fetchpatch { 29 + url = "https://github.com/ksnip/ksnip/commit/76f4b381971eead6ff31b8bf3bb64bb5717469c3.patch"; 30 + hash = "sha256-JWoI974qDNZIzr/8oksI8m6g3XNWEaQRGsqSfvQrmao="; 31 + }) 32 + ]; 33 + 34 + postPatch = '' 35 + substituteInPlace src/CMakeLists.txt --replace-fail "kColorPicker::kColorPicker" "kColorPicker::kColorPicker-Qt5" 36 + ''; 24 37 25 38 nativeBuildInputs = [ 26 39 cmake