ksnip: fix build with versioned kImageAnnotator

This commit is contained in:
K900 2024-02-28 15:46:08 +03:00
parent a06fbd061a
commit f922d82714

View file

@ -3,6 +3,7 @@
, cmake
, extra-cmake-modules
, fetchFromGitHub
, fetchpatch
, kcolorpicker
, kimageannotator
, wrapQtAppsHook
@ -22,6 +23,18 @@ stdenv.mkDerivation rec {
sha256 = "sha256-n7YwDXd73hyrzb6L8utZFuHh9HnjVtkU6CC4jfWPj/I=";
};
patches = [
# Fix build with latest kImageAnnotator
(fetchpatch {
url = "https://github.com/ksnip/ksnip/commit/76f4b381971eead6ff31b8bf3bb64bb5717469c3.patch";
hash = "sha256-JWoI974qDNZIzr/8oksI8m6g3XNWEaQRGsqSfvQrmao=";
})
];
postPatch = ''
substituteInPlace src/CMakeLists.txt --replace-fail "kColorPicker::kColorPicker" "kColorPicker::kColorPicker-Qt5"
'';
nativeBuildInputs = [
cmake
extra-cmake-modules