mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Merge branch 'master' of https://github.com/nomisreual/kitty
This commit is contained in:
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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user