mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
fix: add missing pkgs and manually add font for nix shell
This commit is contained in:
17
shell.nix
17
shell.nix
@@ -15,6 +15,7 @@ in
|
|||||||
xxHash
|
xxHash
|
||||||
simde
|
simde
|
||||||
go_1_23
|
go_1_23
|
||||||
|
matplotlib
|
||||||
]
|
]
|
||||||
++ optionals stdenv.isDarwin [
|
++ optionals stdenv.isDarwin [
|
||||||
Cocoa
|
Cocoa
|
||||||
@@ -25,7 +26,6 @@ in
|
|||||||
OpenGL
|
OpenGL
|
||||||
UniformTypeIdentifiers
|
UniformTypeIdentifiers
|
||||||
libpng
|
libpng
|
||||||
python3
|
|
||||||
zlib
|
zlib
|
||||||
]
|
]
|
||||||
++ lib.optionals (stdenv.isDarwin && (builtins.hasAttr "UserNotifications" darwin.apple_sdk.frameworks)) [
|
++ lib.optionals (stdenv.isDarwin && (builtins.hasAttr "UserNotifications" darwin.apple_sdk.frameworks)) [
|
||||||
@@ -46,6 +46,10 @@ in
|
|||||||
wayland
|
wayland
|
||||||
openssl
|
openssl
|
||||||
dbus
|
dbus
|
||||||
|
cairo #
|
||||||
|
]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
|
wayland-scanner
|
||||||
]
|
]
|
||||||
++ checkInputs;
|
++ checkInputs;
|
||||||
|
|
||||||
@@ -77,10 +81,21 @@ in
|
|||||||
if stdenv.isDarwin
|
if stdenv.isDarwin
|
||||||
then ''
|
then ''
|
||||||
export KITTY_NO_LTO=
|
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 ''
|
else ''
|
||||||
export KITTY_EGL_LIBRARY='${lib.getLib libGL}/lib/libEGL.so.1'
|
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_STARTUP_NOTIFICATION_LIBRARY='${libstartup_notification}/lib/libstartup-notification-1.so'
|
||||||
export KITTY_CANBERRA_LIBRARY='${libcanberra}/lib/libcanberra.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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user