Auto merge of #28978 - yvt:patch/nix-darwin-framework, r=jdm

`etc/shell.nix`: Add `AppKit` to `buildInputs` on Darwin

System framework dependencies need to be specified explicitly on Darwin.

Fixes a linker error when building Servo inside a Nix shell on macOS.

Signed-off-by: yvt <i@yvt.jp>

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

---
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they don't affect the production code
This commit is contained in:
bors-servo 2022-09-23 23:50:53 -04:00 committed by GitHub
commit 76a8307164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,9 @@ clangStdenv.mkDerivation rec {
# Build utilities
cmake dbus gcc git pkgconfig which llvm autoconf213 perl yasm m4
(python3.withPackages (ps: with ps; [virtualenv pip dbus]))
];
] ++ (lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
]);
LIBCLANG_PATH = llvmPackages.clang-unwrapped.lib + "/lib/";