Skip to content

Commit

Permalink
kitty: darwin-fix (#338033)
Browse files Browse the repository at this point in the history
Copy nerdfont to avoid fc-match heuristic on mac
  • Loading branch information
leiserfg authored Sep 2, 2024
1 parent 35aba60 commit 1502b62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/applications/terminal-emulators/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ buildPythonApplication rec {
sphinx-inline-tabs
go
fontconfig
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
] ++ lib.optionals stdenv.isDarwin [
imagemagick
libicns # For the png2icns tool.
Expand Down Expand Up @@ -137,6 +136,11 @@ buildPythonApplication rec {
'';
in ''
runHook preBuild
# Add the font by hand because fontconfig does not finds it in darwin
mkdir ./fonts/
cp "${(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})}/share/fonts/truetype/NerdFonts/SymbolsNerdFontMono-Regular.ttf" ./fonts/
${ lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) "export MACOSX_DEPLOYMENT_TARGET=11" }
${if stdenv.isDarwin then ''
${python.pythonOnBuildForHost.interpreter} setup.py build ${darwinOptions}
Expand Down

0 comments on commit 1502b62

Please sign in to comment.