Skip to content

Commit 1c3ca1b

Browse files
committed
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 | ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
1 parent 0fae44b commit 1c3ca1b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkgs/by-name/al/alttab/package.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
stdenv,
44
coreutils,
55
fetchFromGitHub,
6+
fetchpatch,
67
autoconf,
78
automake,
89
pkg-config,
@@ -28,6 +29,15 @@ stdenv.mkDerivation rec {
2829
sha256 = "sha256-1+hk0OeSriXPyefv3wOgeiW781PL4VP5Luvt+RS5jmg=";
2930
};
3031

32+
patches = [
33+
# Fix gcc-15 build failure: https://github.com/sagb/alttab/pull/178
34+
(fetchpatch {
35+
name = "gcc-15.patch";
36+
url = "https://github.com/sagb/alttab/commit/665e3e369f74ab0075c22a46a3cb3a9f76bdd762.patch";
37+
hash = "sha256-7l74kXs0bAyozBbgOEzDSY+4NE2pjdVfWda0XiPvCz4=";
38+
})
39+
];
40+
3141
nativeBuildInputs = [
3242
autoconf
3343
automake

0 commit comments

Comments
 (0)