From 5841d0353a2adbbc91e377ad9f0afce2bbefb6cb Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 9 Jun 2023 20:45:09 -0400 Subject: [PATCH] cctools-llvm: fix build with clang 16 This was not caught when cctools-llvm was added. The parens are necessary to make sure this evaluates correctly when LLVM is new enough to provide a compatible `otool`. --- pkgs/os-specific/darwin/cctools/llvm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/darwin/cctools/llvm.nix b/pkgs/os-specific/darwin/cctools/llvm.nix index 11ec2b4d04fa..290ded7920c1 100644 --- a/pkgs/os-specific/darwin/cctools/llvm.nix +++ b/pkgs/os-specific/darwin/cctools/llvm.nix @@ -97,7 +97,7 @@ stdenv.mkDerivation { ${linkManPages (lib.getMan cctools-port) "ld64" "ld64"} ${lib.optionalString (!useLLVMOtool) # The actual man page for otool in cctools is llvm-otool - linkManPages (lib.getMan cctools-port) "llvm-otool" "llvm-otool"} + (linkManPages (lib.getMan cctools-port) "llvm-otool" "llvm-otool")} ''; passthru = { inherit targetPrefix; };