mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +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
|
with pkgs; let
|
||||||
inherit (lib) optional optionals;
|
inherit (lib) optional optionals;
|
||||||
inherit (xorg) libX11 libXrandr libXinerama libXcursor libXi libXext;
|
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;};
|
harfbuzzWithCoreText = harfbuzz.override {withCoreText = stdenv.isDarwin;};
|
||||||
in
|
in
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
@@ -14,23 +13,13 @@ in
|
|||||||
lcms2
|
lcms2
|
||||||
xxHash
|
xxHash
|
||||||
simde
|
simde
|
||||||
go_1_24
|
go
|
||||||
matplotlib
|
matplotlib
|
||||||
]
|
]
|
||||||
++ optionals stdenv.isDarwin [
|
++ optionals stdenv.isDarwin [
|
||||||
Cocoa
|
|
||||||
CoreGraphics
|
|
||||||
Foundation
|
|
||||||
IOKit
|
|
||||||
Kernel
|
|
||||||
OpenGL
|
|
||||||
UniformTypeIdentifiers
|
|
||||||
libpng
|
libpng
|
||||||
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
|
fontconfig
|
||||||
libunistring
|
libunistring
|
||||||
|
|||||||
Reference in New Issue
Block a user