lol

Merge pull request #265495 from wegank/libb64-clang-16

libb64: fix build with clang 16

authored by

Weijia Wang and committed by
GitHub
ead4c02a aebc7240

+7
+7
pkgs/development/libraries/libb64/default.nix
··· 30 30 url = "https://github.com/libb64/libb64/commit/b5edeafc89853c48fa41a4c16393a1fdc8638ab6.patch"; 31 31 hash = "sha256-+bqfOOlT/t0FLQEMHuxW1BxJcx9rk0yYM3wD43mcymo"; 32 32 }) 33 + # Fix build with Clang 16. 34 + # https://github.com/libb64/libb64/pull/10 35 + (fetchpatch { 36 + name = "use-proper-function-prototype-for-main.patch"; 37 + url = "https://github.com/libb64/libb64/commit/98eaf510f40e384b32c01ad4bd5c3a697fdd8560.patch"; 38 + hash = "sha256-CGslJUw0og/bBBirLm0J5Q7cf2WW/vniVAkXHlb6lbQ="; 39 + }) 33 40 ] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) (fetchpatch { 34 41 name = "0001-example-Do-not-run-the-tests.patch"; 35 42 url = "https://cgit.openembedded.org/meta-openembedded/plain/meta-oe/recipes-support/libb64/libb64/0001-example-Do-not-run-the-tests.patch?id=484e0de1e4ee107f21ae2a5c5f976ed987978baf";