efivar: fix build w/ glibc-2.44

This commit is contained in:
Maximilian Bosch
2026-08-24 01:22:03 +02:00
parent efa476934e
commit abc74b463f

View File

@@ -6,6 +6,7 @@
pkg-config,
popt,
mandoc,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -33,6 +34,14 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ popt ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
patches = [
# fix build with glibc-2.44
(fetchpatch {
url = "https://github.com/rhboot/efivar/commit/f521cd7f584c95d8308659ab9d89d750e2bd76da.patch";
hash = "sha256-I19UIS0tNTsEipuoMQPlTEwih1RrYPz9Q4Wy98u1z0Q=";
})
];
makeFlags = [
"prefix=$(out)"
"libdir=$(out)/lib"