mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Update shell.nix
According to https://nixos.org/manual/nixpkgs/stable/#sec-darwin-legacy-frameworks, the darwin.apple_sdk.framework namespace has been deprecated. This commit updates shell.nix to be compatible with the nixos-unstable channel on darwin. Tested by running `nix-shell --pure` and then `make` inside that shell.
This commit is contained in:
13
shell.nix
13
shell.nix
@@ -2,7 +2,6 @@
|
||||
with pkgs; let
|
||||
inherit (lib) optional optionals;
|
||||
inherit (xorg) libX11 libXrandr libXinerama libXcursor libXi libXext;
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa CoreGraphics Foundation IOKit Kernel OpenGL UniformTypeIdentifiers;
|
||||
harfbuzzWithCoreText = harfbuzz.override {withCoreText = stdenv.isDarwin;};
|
||||
in
|
||||
with python3Packages;
|
||||
@@ -14,23 +13,13 @@ in
|
||||
lcms2
|
||||
xxHash
|
||||
simde
|
||||
go_1_24
|
||||
go
|
||||
matplotlib
|
||||
]
|
||||
++ optionals stdenv.isDarwin [
|
||||
Cocoa
|
||||
CoreGraphics
|
||||
Foundation
|
||||
IOKit
|
||||
Kernel
|
||||
OpenGL
|
||||
UniformTypeIdentifiers
|
||||
libpng
|
||||
zlib
|
||||
]
|
||||
++ lib.optionals (stdenv.isDarwin && (builtins.hasAttr "UserNotifications" darwin.apple_sdk.frameworks)) [
|
||||
darwin.apple_sdk.frameworks.UserNotifications
|
||||
]
|
||||
++ optionals stdenv.isLinux [
|
||||
fontconfig
|
||||
libunistring
|
||||
|
||||
Reference in New Issue
Block a user