nix/pkgs/iosevka-lyteterm.nix

22 lines
458 B
Nix
Raw Normal View History

2024-02-03 10:51:20 -06:00
{
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
];
2024-02-02 15:28:57 -06:00
installPhase = ''
2024-02-03 10:51:20 -06:00
mkdir -p "$out/share/fonts/truetype"
for f in "$BASE_FONTS"/*.ttf; do
cp "$f" "$out/share/fonts/truetype"
done
2024-02-02 15:28:57 -06:00
'';
2024-02-03 10:51:20 -06:00
}