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; githubId = 2049686;
name = "Sebastián Estrella"; name = "Sebastián Estrella";
}; };
seudonym = {
name = "Wahid Khan";
email = "wk170179+nixpkgs@gmail.com";
github = "seudonym";
githubId = 80459261;
};
seven_bear = { seven_bear = {
name = "Edmond Freeman"; name = "Edmond Freeman";
email = "edmondfreeman7@gmail.com"; email = "edmondfreeman7@gmail.com";

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;
}; };
} }