Commit 1c3ca1bc authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

alttab: fix `gcc-15` build

Without the change the build fails on `master` as
https://hydra.nixos.org/build/317969520:

    alttab.c:536:25: error: too many arguments to function 'getOffendingModifiersMask'; expected 0, have 1
      536 |     g.ignored_modmask = getOffendingModifiersMask(dpy); // or 0 for g.debug
          |                         ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
parent 0fae44bd
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  coreutils,
  fetchFromGitHub,
  fetchpatch,
  autoconf,
  automake,
  pkg-config,
@@ -28,6 +29,15 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-1+hk0OeSriXPyefv3wOgeiW781PL4VP5Luvt+RS5jmg=";
  };

  patches = [
    # Fix gcc-15 build failure: https://github.com/sagb/alttab/pull/178
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/sagb/alttab/commit/665e3e369f74ab0075c22a46a3cb3a9f76bdd762.patch";
      hash = "sha256-7l74kXs0bAyozBbgOEzDSY+4NE2pjdVfWda0XiPvCz4=";
    })
  ];

  nativeBuildInputs = [
    autoconf
    automake