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
          |                         ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
This commit is contained in:
Sergei Trofimovich
2026-01-20 21:45:14 +00:00
parent 0fae44bd1d
commit 1c3ca1bc55

View File

@@ -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