Skip to content

Commit 78d6750

Browse files
authored
clipit: fix build on gcc14 (NixOS#369068)
2 parents 17a08ed + 297d9f1 commit 78d6750

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pkgs/by-name/cl/clipit/package.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
fetchFromGitHub,
3+
fetchpatch,
34
lib,
45
stdenv,
56
autoreconfHook,
@@ -27,16 +28,30 @@ stdenv.mkDerivation rec {
2728
intltoolize --copy --force --automake
2829
'';
2930

31+
patches = [
32+
# Fixes for GCC14
33+
(fetchpatch {
34+
url = "https://salsa.debian.org/debian/clipit/-/raw/d4bafc28fcb445d1940cdfede6c70142cf3162f5/debian/patches/incompatible-pointer-types.patch";
35+
hash = "sha256-STI1fpnoPdEqu1embQcUlTG712HPbJ+LPm930P13Ixo=";
36+
})
37+
(fetchpatch {
38+
url = "https://salsa.debian.org/debian/clipit/-/raw/656d0814030c13437b10d40ee75615d0e8cd873e/debian/patches/missing-prototypes.patch";
39+
hash = "sha256-UD183IjV5BprPHQK9bhmUBKfUYgqEZ9M1cRE+AmhAPA=";
40+
})
41+
];
42+
3043
nativeBuildInputs = [
3144
pkg-config
3245
wrapGAppsHook3
3346
autoreconfHook
3447
intltool
3548
];
49+
3650
configureFlags = [
3751
"--with-gtk3"
3852
"--enable-appindicator=yes"
3953
];
54+
4055
buildInputs = [
4156
gtk3
4257
libayatana-appindicator

0 commit comments

Comments
 (0)