Skip to content

Commit

Permalink
edk2-uefi-shell: fix build on x86_64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
reckenrode committed Nov 7, 2022
1 parent b808a35 commit 0aa21a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/tools/misc/edk2-uefi-shell/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ lib
, stdenv
, edk2
, llvmPackages
, util-linux
, nasm
, python3
Expand All @@ -8,9 +10,12 @@ edk2.mkDerivation "ShellPkg/ShellPkg.dsc" (finalAttrs: {
pname = "edk2-uefi-shell";
inherit (edk2) version;

nativeBuildInputs = [ util-linux nasm python3 ];
nativeBuildInputs = [ util-linux nasm python3 ]
++ lib.optionals stdenv.cc.isClang [ llvmPackages.bintools llvmPackages.llvm ];
strictDeps = true;

NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [ "-fno-pic" "-Qunused-arguments" ];

# We only have a .efi file in $out which shouldn't be patched or stripped
dontPatchELF = true;
dontStrip = true;
Expand Down

0 comments on commit 0aa21a7

Please sign in to comment.