From 67abaf44e8eec53cbf78374c77af6fa05df812aa Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Sun, 13 Nov 2022 11:47:14 +1000 Subject: [PATCH] efivar: backport i686 format fix See [1] and [2]. [1]: https://github.com/NixOS/nixpkgs/pull/198789 [2]: https://github.com/NixOS/nixpkgs/pull/200916 --- pkgs/tools/system/efivar/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/efivar/default.nix b/pkgs/tools/system/efivar/default.nix index 09394beb3931..f08a70e2b07a 100644 --- a/pkgs/tools/system/efivar/default.nix +++ b/pkgs/tools/system/efivar/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildPackages, fetchFromGitHub, pkg-config, popt, mandoc }: +{ lib, stdenv, buildPackages, fetchFromGitHub, fetchpatch, pkg-config, popt, mandoc }: stdenv.mkDerivation rec { pname = "efivar"; @@ -13,6 +13,13 @@ stdenv.mkDerivation rec { hash = "sha256-A38BKGMK3Vo+85wzgxmzTjzZXtpcY9OpbZaONWnMYNk="; }; + patches = [ + (fetchpatch { + url = "https://github.com/rhboot/efivar/commit/15622b7e5761f3dde3f0e42081380b2b41639a48.patch"; + sha256 = "sha256-SjZXj0hA2eQu2MfBoNjFPtd2DMYadtL7ZqwjKSf2cmI="; + }) + ]; + nativeBuildInputs = [ pkg-config mandoc ]; buildInputs = [ popt ]; depsBuildBuild = [ buildPackages.stdenv.cc ];