mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
ksnip: fix build with versioned kImageAnnotator
This commit is contained in:
parent
a06fbd061a
commit
f922d82714
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue