mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user