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
3
, cmake
4
4
, extra-cmake-modules
5
5
, fetchFromGitHub
6
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
25
+
26
26
+
patches = [
27
27
+
# Fix build with latest kImageAnnotator
28
28
+
(fetchpatch {
29
29
+
url = "https://github.com/ksnip/ksnip/commit/76f4b381971eead6ff31b8bf3bb64bb5717469c3.patch";
30
30
+
hash = "sha256-JWoI974qDNZIzr/8oksI8m6g3XNWEaQRGsqSfvQrmao=";
31
31
+
})
32
32
+
];
33
33
+
34
34
+
postPatch = ''
35
35
+
substituteInPlace src/CMakeLists.txt --replace-fail "kColorPicker::kColorPicker" "kColorPicker::kColorPicker-Qt5"
36
36
+
'';
24
37
25
38
nativeBuildInputs = [
26
39
cmake