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:
parent
dd1e778bf6
commit
210ebc2123
1 changed files with 3 additions and 1 deletions
|
@ -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}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue