victor-mono: use installFonts

This commit is contained in:
Seudonym
2026-06-05 00:00:44 +05:30
parent 886dd8bb11
commit e972afeb03

View File

@@ -2,8 +2,8 @@
lib, lib,
stdenvNoCC, stdenvNoCC,
fetchzip, fetchzip,
installFonts,
}: }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "victor-mono"; pname = "victor-mono";
version = "1.5.6"; version = "1.5.6";
@@ -21,22 +21,20 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-PnCCU7PO+XcxUk445sU5xVl8XqdSPJighjtDTqI6qiw="; hash = "sha256-PnCCU7PO+XcxUk445sU5xVl8XqdSPJighjtDTqI6qiw=";
}; };
installPhase = '' nativeBuildInputs = [ installFonts ];
runHook preInstall outputs = [
"out"
mkdir -p "$out/share/fonts/" "webfont"
];
mv OTF $out/share/fonts/opentype
mv TTF $out/share/fonts/truetype
runHook postInstall
'';
meta = { meta = {
description = "Free programming font with cursive italics and ligatures"; description = "Free programming font with cursive italics and ligatures";
homepage = "https://rubjo.github.io/victor-mono"; homepage = "https://rubjo.github.io/victor-mono";
license = lib.licenses.ofl; license = lib.licenses.ofl;
maintainers = with lib.maintainers; [ jpotier ]; maintainers = with lib.maintainers; [
jpotier
seudonym
];
platforms = lib.platforms.all; platforms = lib.platforms.all;
}; };
} }