shell.nix: add dependency needed on Apple silicon
shell.nix is missing a depencency on the UserNotifications framework on macOS with Apple silicon. Unfortunately we can't just unconditionally include this dependency because Nixpkgs uses a different macOS SDK version for macOS on an Intel processor compared to macOS on Apple silicon. The older SDK version 10.12 on Intel does not have the UserNotifications framework, which would lead to an "attribute missing" error when trying to execute `nix-shell`. The condition can be dropped when the macOS SDK version for Intel processors is finally updated. See https://github.com/NixOS/nixpkgs/issues/101229 for progress on that. See https://github.com/NixOS/nixpkgs/pull/137512 for more context. Closes https://github.com/kovidgoyal/kitty/issues/4352.
This commit is contained in:
parent
f6b748712c
commit
7ea4c1e47f
@ -24,6 +24,8 @@ mkShell rec {
|
|||||||
libpng
|
libpng
|
||||||
python3
|
python3
|
||||||
zlib
|
zlib
|
||||||
|
] ++ lib.optionals (stdenv.isDarwin && (builtins.hasAttr "UserNotifications" darwin.apple_sdk.frameworks)) [
|
||||||
|
darwin.apple_sdk.frameworks.UserNotifications
|
||||||
] ++ optionals stdenv.isLinux [
|
] ++ optionals stdenv.isLinux [
|
||||||
fontconfig libunistring libcanberra libX11
|
fontconfig libunistring libcanberra libX11
|
||||||
libXrandr libXinerama libXcursor libxkbcommon libXi libXext
|
libXrandr libXinerama libXcursor libxkbcommon libXi libXext
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user