clipit: fix build on gcc14

This commit is contained in:
Stefan Frijters 2024-12-29 11:22:18 +01:00
parent a968249646
commit 297d9f1ccf
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -1,5 +1,6 @@
{
fetchFromGitHub,
fetchpatch,
lib,
stdenv,
autoreconfHook,
@ -27,16 +28,30 @@ stdenv.mkDerivation rec {
intltoolize --copy --force --automake
'';
patches = [
# Fixes for GCC14
(fetchpatch {
url = "https://salsa.debian.org/debian/clipit/-/raw/d4bafc28fcb445d1940cdfede6c70142cf3162f5/debian/patches/incompatible-pointer-types.patch";
hash = "sha256-STI1fpnoPdEqu1embQcUlTG712HPbJ+LPm930P13Ixo=";
})
(fetchpatch {
url = "https://salsa.debian.org/debian/clipit/-/raw/656d0814030c13437b10d40ee75615d0e8cd873e/debian/patches/missing-prototypes.patch";
hash = "sha256-UD183IjV5BprPHQK9bhmUBKfUYgqEZ9M1cRE+AmhAPA=";
})
];
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
autoreconfHook
intltool
];
configureFlags = [
"--with-gtk3"
"--enable-appindicator=yes"
];
buildInputs = [
gtk3
libayatana-appindicator