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:
Jack Duvall 2026-03-23 17:26:53 -04:00
parent 7c963a67cf
commit 63a257591b

View file

@ -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