tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ksnip: fix build with versioned kImageAnnotator
K900
2 years ago
f922d827
a06fbd06
+13
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
ksnip
default.nix
+13
pkgs/tools/misc/ksnip/default.nix
···
3
, cmake
4
, extra-cmake-modules
5
, fetchFromGitHub
0
6
, kcolorpicker
7
, kimageannotator
8
, wrapQtAppsHook
···
21
rev = "v${version}";
22
sha256 = "sha256-n7YwDXd73hyrzb6L8utZFuHh9HnjVtkU6CC4jfWPj/I=";
23
};
0
0
0
0
0
0
0
0
0
0
0
0
24
25
nativeBuildInputs = [
26
cmake
···
3
, cmake
4
, extra-cmake-modules
5
, fetchFromGitHub
6
+
, fetchpatch
7
, kcolorpicker
8
, kimageannotator
9
, wrapQtAppsHook
···
22
rev = "v${version}";
23
sha256 = "sha256-n7YwDXd73hyrzb6L8utZFuHh9HnjVtkU6CC4jfWPj/I=";
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
+
'';
37
38
nativeBuildInputs = [
39
cmake