2021-12-06 16:07:01 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.5.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
in
|
|
|
|
fetchzip {
|
|
|
|
name = "victor-mono-${version}";
|
2022-06-26 10:26:21 +00:00
|
|
|
stripRoot = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Upstream prefers we download from the website,
|
|
|
|
# but we really insist on a more versioned resource.
|
|
|
|
# Happily, tagged releases on github contain the same
|
|
|
|
# file `VictorMonoAll.zip` as from the website,
|
|
|
|
# so we extract it from the tagged release.
|
|
|
|
# Both methods produce the same file, but this way
|
|
|
|
# we can safely reason about what version it is.
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
postFetch = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
mkdir -p "$out/share/fonts/"
|
|
|
|
|
|
|
|
mv $out/OTF $out/share/fonts/opentype
|
|
|
|
mv $out/TTF $out/share/fonts/truetype
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
rm -r $out/{EOT,WOFF,WOFF2,LICENSE.txt}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-1si0d2lpuXaDcSc3giVMMMbZc/eKbHKU3wmwfYHZ8o0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free programming font with cursive italics and ligatures";
|
|
|
|
homepage = "https://rubjo.github.io/victor-mono";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.ofl;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ jpotier dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|