about summary refs log tree commit diff
path: root/pkgs/development/libraries/gnu-efi
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-22 23:08:05 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-22 23:09:06 +0100
commit131a97e8c8790621fde729335339668463a4604f (patch)
tree5bf363a464bde92c7a2f18dad54cf48e97a5f83a /pkgs/development/libraries/gnu-efi
parent6c189d264e232c76ab5d8a48d639e637ffd31fd7 (diff)
gnu-efi: pull fix pending upstream inclusion for parallel build failures
Without the change parallel build fails as:

    gcc -I/build/gnu-efi-code//lib ... -c lib/runtime/rtstr.c -o runtime/rtstr.o
    Assembler messages:
    Fatal error: can't create runtime/rtstr.o: No such file or directory
Diffstat (limited to 'pkgs/development/libraries/gnu-efi')
-rw-r--r--pkgs/development/libraries/gnu-efi/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gnu-efi/default.nix b/pkgs/development/libraries/gnu-efi/default.nix
index f331a8f753b9f..a49e0fad215c6 100644
--- a/pkgs/development/libraries/gnu-efi/default.nix
+++ b/pkgs/development/libraries/gnu-efi/default.nix
@@ -12,6 +12,16 @@ stdenv.mkDerivation rec {
     sha256 = "tztkOg1Wl9HzltdDFEjoht2AVmh4lXjj4aKCd8lShDU=";
   };
 
+  patches = [
+    # Pull fix pending upstream inclusion for parallel builds
+    #  https://sourceforge.net/p/gnu-efi/patches/84/
+    (fetchurl {
+      name = "parallel-build.patch";
+      url = "https://sourceforge.net/p/gnu-efi/patches/84/attachment/0001-lib-Makefile-add-.o-file-dependency-on-libsubdirs-ta.patch";
+      sha256 = "sha256-+2UwV2lopdB/tazib1BLzO1E3GgB1L8dZsSQKWVoLwA=";
+    })
+  ];
+
   buildInputs = [ pciutils ];
 
   hardeningDisable = [ "stackprotector" ];