victor-mono: 1.5.2 -> 1.5.3

This commit is contained in:
Alex Gherghisan 2022-06-02 22:04:32 +01:00
parent fa288e6050
commit a86c78d061
No known key found for this signature in database
GPG Key ID: F522D0BD4B0E4BE3

View File

@ -1,10 +1,11 @@
{ lib, fetchzip }:
let
version = "1.5.2";
version = "1.5.3";
in
fetchzip {
name = "victor-mono-${version}";
stripRoot = false;
# Upstream prefers we download from the website,
# but we really insist on a more versioned resource.
@ -16,12 +17,15 @@ fetchzip {
url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
postFetch = ''
mkdir -p $out/share/fonts/
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
mkdir -p "$out/share/fonts/"
mv $out/OTF $out/share/fonts/opentype
mv $out/TTF $out/share/fonts/truetype
rm -r $out/{EOT,WOFF,WOFF2}
'';
sha256 = "sha256-cNDZh0P/enmoKL/6eHzkgl5ghtai2K9cTgWMVmm8GIA=";
sha256 = "sha256-3TGpUDBJ24NEJb00oaJAHEbjC58bSthohzqM1klVDGA=";
meta = with lib; {
description = "Free programming font with cursive italics and ligatures";