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.
This commit is contained in:
Randy Eckenrode 2024-05-04 18:18:19 -04:00
parent dd1e778bf6
commit 210ebc2123
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -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 cant 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}";