diff --git a/pkgs/by-name/cl/clipit/package.nix b/pkgs/by-name/cl/clipit/package.nix index c19ae440579d..b6c1f97d5e65 100644 --- a/pkgs/by-name/cl/clipit/package.nix +++ b/pkgs/by-name/cl/clipit/package.nix @@ -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