From f5956774188194c8f5b5acbfe4392f91ece6a593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 18 Feb 2020 10:19:44 +0100 Subject: [PATCH] efibootmgr: fixup build on i686 Same as efivar; I believe it doesn't really needs LTO. I checked: nix build -f nixos/release-combined.nix nixos.iso_minimal.i686-linux --- pkgs/tools/system/efibootmgr/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/system/efibootmgr/default.nix b/pkgs/tools/system/efibootmgr/default.nix index 272809e486c..a2487324849 100644 --- a/pkgs/tools/system/efibootmgr/default.nix +++ b/pkgs/tools/system/efibootmgr/default.nix @@ -22,6 +22,8 @@ stdenv.mkDerivation rec { sha256 = "1sbijvlpv4khkix3vix9mbhzffj8lp8zpnbxm9gnzjz8yssz9p5h"; }) ]; + # We have no LTO here since commit 22284b07. + postPatch = if stdenv.isi686 then "sed '/^CFLAGS/s/-flto//' -i Make.defaults" else null; makeFlags = [ "EFIDIR=nixos" ];