mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
fix: add missing pkgs and manually add font for nix shell
This commit is contained in:
parent
04a4d62859
commit
eb70f81218
1 changed files with 16 additions and 1 deletions
17
shell.nix
17
shell.nix
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue