victor-mono: use installFonts (#528081)

This commit is contained in:
Yohann Boniface
2026-06-05 06:53:48 +00:00
committed by GitHub
2 changed files with 16 additions and 12 deletions

View File

@@ -25089,6 +25089,12 @@
githubId = 2049686;
name = "Sebastián Estrella";
};
seudonym = {
name = "Wahid Khan";
email = "wk170179+nixpkgs@gmail.com";
github = "seudonym";
githubId = 80459261;
};
seven_bear = {
name = "Edmond Freeman";
email = "edmondfreeman7@gmail.com";

View File

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