diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-11-20 20:26:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 20:26:41 +0100 |
commit | 084a1fd53755d29229f284e83203742d6ad0aee8 (patch) | |
tree | 8330dad88e976f86e65b4db05482304bfc2679fb | |
parent | a8f975fcd43ab85b7231de955e43a7a77e3e1579 (diff) | |
parent | 4d9f200932079e93c122cfd820b40f195a6d9c20 (diff) |
Merge pull request #200697 from NickCao/efivar
efivar: fix cross compilation
-rw-r--r-- | pkgs/tools/system/efivar/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/system/efivar/default.nix b/pkgs/tools/system/efivar/default.nix index 06d5fb0fa00ef..37e8d664f23f2 100644 --- a/pkgs/tools/system/efivar/default.nix +++ b/pkgs/tools/system/efivar/default.nix @@ -18,6 +18,12 @@ stdenv.mkDerivation rec { url = "https://github.com/rhboot/efivar/commit/15622b7e5761f3dde3f0e42081380b2b41639a48.patch"; sha256 = "sha256-SjZXj0hA2eQu2MfBoNjFPtd2DMYadtL7ZqwjKSf2cmI="; }) + # src/Makefile: build util.c separately for makeguids + # util.c needs to be built twice when cross-compiling + (fetchpatch { + url = "https://github.com/rhboot/efivar/commit/ca48d3964d26f5e3b38d73655f19b1836b16bd2d.patch"; + hash = "sha256-DkNFIK4i7Eypyf2UeK7qHW36N2FSVRJ2rnOVLriWi5c="; + }) ]; nativeBuildInputs = [ pkg-config mandoc ]; |