aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/gnu-efi
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2019-11-05 00:43:07 -0500
committerBen Wolsieffer <benwolsieffer@gmail.com>2019-11-05 12:35:13 -0500
commit901e851fe9f3abbf7c25bc4c38cbc7903856f712 (patch)
treeab63ca0abd7b3435dc75465cc90edbe149240468 /pkgs/development/libraries/gnu-efi
parentcb8423d19ba6ab9aa06e5c9fcf0fbae61aa9a12b (diff)
gnu-efi: apply patch to fix build on armv6l
Diffstat (limited to 'pkgs/development/libraries/gnu-efi')
-rw-r--r--pkgs/development/libraries/gnu-efi/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gnu-efi/default.nix b/pkgs/development/libraries/gnu-efi/default.nix
index 6ae1f47e38cd..e218729821fb 100644
--- a/pkgs/development/libraries/gnu-efi/default.nix
+++ b/pkgs/development/libraries/gnu-efi/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildPackages, fetchurl, pciutils }:
+{ stdenv, buildPackages, fetchurl, fetchpatch, pciutils }:
with stdenv.lib;
@@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1w3p4aqlc5j93q44la7dc8cr3hky20zvsd0h0k2lyzhwmrzfl5b7";
};
+ patches = [
+ # Fix build on armv6l
+ (fetchpatch {
+ url = "https://sourceforge.net/p/gnu-efi/patches/_discuss/thread/25bb273a18/9c4d/attachment/0001-Fix-ARCH-on-armv6-and-other-32-bit-ARM-platforms.patch";
+ sha256 = "0pj03h20g2bbz6fr753bj1scry6919h57l1h86z3b6q7hqfj0b4r";
+ })
+ ];
+
buildInputs = [ pciutils ];
hardeningDisable = [ "stackprotector" ];