Skip to content

Commit

Permalink
droid: improve font derivation script
Browse files Browse the repository at this point in the history
Co-authored-by: NAHO <[email protected]>
  • Loading branch information
brckd and trueNAHO committed Jan 27, 2025
1 parent 3ac3320 commit 38a806d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stylix/droid/fonts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ let
FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = [ font.package ]; };
}
''
font=$(
font="$(
${lib.getExe' pkgs.fontconfig "fc-match"} \
${lib.escapeShellArg font.name} \
--format %{file}
)
ln -s "$font" "$out"
)"
cp "$font" "$out"
'';
terminalFont = mkFont config.stylix.fonts.monospace;
in
Expand Down

0 comments on commit 38a806d

Please sign in to comment.