nix/pkgs/iosevka-lyteterm.nix
2024-02-03 10:51:20 -06:00

22 lines
458 B
Nix

{
pkgs,
iosevka-lyteterm-raw,
...
}: let
BASE_FONTS = "${iosevka-lyteterm-raw}/iosevka-lyteterm/ttf";
in
pkgs.stdenvNoCC.mkDerivation {
inherit BASE_FONTS;
pname = "iosevka-lyteterm-ttf";
version = iosevka-lyteterm-raw.version;
srcs = [
BASE_FONTS
];
installPhase = ''
mkdir -p "$out/share/fonts/truetype"
for f in "$BASE_FONTS"/*.ttf; do
cp "$f" "$out/share/fonts/truetype"
done
'';
}