Loading pkgs/by-name/bi/bitlbee-mastodon/gcc-15.patch 0 → 100644 +17 −0 Original line number Diff line number Diff line https://github.com/kensanata/bitlbee-mastodon/pull/61 FIx gcc-15 build (`bool` collision). --- a/src/mastodon-lib.c +++ b/src/mastodon-lib.c @@ -2093,9 +2093,9 @@ static char *indent(int n) /** * Return a static yes or no string. No deallocation needed. */ -static char *yes_or_no(int bool) +static char *yes_or_no(int b) { - return bool ? "yes" : "no"; + return b ? "yes" : "no"; } /** pkgs/by-name/bi/bitlbee-mastodon/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,11 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-8vmq/YstuBYUxe00P4NrxD/eMYI++R9uvn1sCcMTr7I="; }; patches = [ # gcc-15 build fix: https://github.com/kensanata/bitlbee-mastodon/pull/61 ./gcc-15.patch ]; nativeBuildInputs = [ autoreconfHook pkg-config Loading Loading
pkgs/by-name/bi/bitlbee-mastodon/gcc-15.patch 0 → 100644 +17 −0 Original line number Diff line number Diff line https://github.com/kensanata/bitlbee-mastodon/pull/61 FIx gcc-15 build (`bool` collision). --- a/src/mastodon-lib.c +++ b/src/mastodon-lib.c @@ -2093,9 +2093,9 @@ static char *indent(int n) /** * Return a static yes or no string. No deallocation needed. */ -static char *yes_or_no(int bool) +static char *yes_or_no(int b) { - return bool ? "yes" : "no"; + return b ? "yes" : "no"; } /**
pkgs/by-name/bi/bitlbee-mastodon/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,11 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-8vmq/YstuBYUxe00P4NrxD/eMYI++R9uvn1sCcMTr7I="; }; patches = [ # gcc-15 build fix: https://github.com/kensanata/bitlbee-mastodon/pull/61 ./gcc-15.patch ]; nativeBuildInputs = [ autoreconfHook pkg-config Loading