diff --git a/pkgs/by-name/li/libpisp/package.nix b/pkgs/by-name/li/libpisp/package.nix index b0d44498a5c1..6ee36b13ea8a 100644 --- a/pkgs/by-name/li/libpisp/package.nix +++ b/pkgs/by-name/li/libpisp/package.nix @@ -7,6 +7,7 @@ ninja, boost, nlohmann_json, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { @@ -20,6 +21,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-YshU7G5Rov67CVwFbf5ENp2j5ptAvkVrlMu85KmnEpk="; }; + patches = [ + # fix build with glibc 2.42 & -Werror + (fetchpatch { + url = "https://github.com/raspberrypi/libpisp/commit/f2bbf7e000d3f11cac235b8ea1291722080a016c.patch"; + hash = "sha256-vrdmVadyjlAnZtmBahOs/hlKPrkh/BF3LvrTPM9D15Q="; + }) + ]; + nativeBuildInputs = [ pkg-config meson