shim-unsigned: fix build with binutils 2.46

This commit is contained in:
Harinn
2026-05-25 14:48:37 -04:00
committed by Michael Daniels
parent 8651b53717
commit 0ffae4a1de
@@ -1,6 +1,7 @@
{
stdenv,
fetchFromGitHub,
fetchpatch2,
lib,
elfutils,
vendorCertFile ? null,
@@ -31,6 +32,14 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [
# Fix build with binutils 2.46.
(fetchpatch2 {
url = "https://github.com/rhboot/shim/commit/c4665d282072df2ed8ab6ae1d5fa0de41e5db02f.patch?full_index=1";
hash = "sha256-0QGqEo5qu3TrG9yqwQLZGuKhgoeReF+RrJzlOVQYDmA=";
})
];
buildInputs = [ elfutils ];
env.NIX_CFLAGS_COMPILE = toString [ "-I${toString elfutils.dev}/include" ];