fix: add missing pkgs and manually add font for nix shell

This commit is contained in:
Simon Antonius Lauer 2025-05-10 14:42:46 +02:00
parent 04a4d62859
commit eb70f81218

View file

@ -15,6 +15,7 @@ in
xxHash
simde
go_1_23
matplotlib
]
++ optionals stdenv.isDarwin [
Cocoa
@ -25,7 +26,6 @@ in
OpenGL
UniformTypeIdentifiers
libpng
python3
zlib
]
++ lib.optionals (stdenv.isDarwin && (builtins.hasAttr "UserNotifications" darwin.apple_sdk.frameworks)) [
@ -46,6 +46,10 @@ in
wayland
openssl
dbus
cairo #
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland-scanner
]
++ checkInputs;
@ -77,10 +81,21 @@ in
if stdenv.isDarwin
then ''
export KITTY_NO_LTO=
# Add fonts by hand
if [ ! -e ./fonts/SymbolsNerdFontMono-Regular.ttf ]; then
cp "${nerd-fonts.symbols-only}/share/fonts/truetype/NerdFonts/Symbols/SymbolsNerdFontMono-Regular.ttf" ./fonts/
fi
''
else ''
export KITTY_EGL_LIBRARY='${lib.getLib libGL}/lib/libEGL.so.1'
export KITTY_STARTUP_NOTIFICATION_LIBRARY='${libstartup_notification}/lib/libstartup-notification-1.so'
export KITTY_CANBERRA_LIBRARY='${libcanberra}/lib/libcanberra.so'
export KITTY_FONTCONFIG_LIBRARY='${fontconfig.lib}/lib/libfontconfig.so'
# Add fonts by hand
if [ ! -e ./fonts/SymbolsNerdFontMono-Regular.ttf ]; then
cp "${nerd-fonts.symbols-only}/share/fonts/truetype/NerdFonts/Symbols/SymbolsNerdFontMono-Regular.ttf" ./fonts/
fi
'';
}