From 210ebc21235624e55f234dc2306fb1f4981923e2 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 4 May 2024 18:18:19 -0400 Subject: [PATCH] llvmPackages.lldb: combine `out` and `lib` outputs on Darwin LLDB expects to find the location of `bin` relative to `lib`. Patching it to know the location would cause a cycle between the `out` output and the `lib` output, so combine the two on Darwin. Fixes https://github.com/NixOS/nixpkgs/issues/252838. --- pkgs/development/compilers/llvm/common/lldb.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/common/lldb.nix b/pkgs/development/compilers/llvm/common/lldb.nix index 59e427e846c4..c582ac863941 100644 --- a/pkgs/development/compilers/llvm/common/lldb.nix +++ b/pkgs/development/compilers/llvm/common/lldb.nix @@ -50,7 +50,9 @@ stdenv.mkDerivation (rec { src = src'; inherit patches; - outputs = [ "out" "lib" "dev" ]; + # LLDB expects to find the path to `bin` relative to `lib` on Darwin. It can’t be patched with the location of + # the `lib` output because that would create a cycle between it and the `out` output. + outputs = [ "out" "dev" ] ++ lib.optionals (!stdenv.isDarwin) [ "lib" ]; sourceRoot = lib.optional (lib.versionAtLeast release_version "13") "${src.name}/${pname}";