2021-10-30 06:20:00 +02:00
|
|
|
{ lib, fetchzip }:
|
2019-07-13 10:00:39 +02:00
|
|
|
|
|
|
|
let
|
2022-06-02 23:04:32 +02:00
|
|
|
version = "1.5.3";
|
2021-10-30 06:20:00 +02:00
|
|
|
in
|
|
|
|
fetchzip {
|
|
|
|
name = "victor-mono-${version}";
|
2022-06-02 23:04:32 +02:00
|
|
|
stripRoot = false;
|
2019-07-13 10:00:39 +02:00
|
|
|
|
2019-07-18 01:27:26 +02: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-10-30 06:20:00 +02:00
|
|
|
url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
|
2019-07-18 01:27:26 +02:00
|
|
|
|
2021-10-30 06:20:00 +02:00
|
|
|
postFetch = ''
|
2022-06-02 23:04:32 +02:00
|
|
|
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}
|
2019-07-13 10:00:39 +02:00
|
|
|
'';
|
|
|
|
|
2022-06-02 23:04:32 +02:00
|
|
|
sha256 = "sha256-3TGpUDBJ24NEJb00oaJAHEbjC58bSthohzqM1klVDGA=";
|
2019-07-13 10:00:39 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2019-07-18 01:27:26 +02:00
|
|
|
description = "Free programming font with cursive italics and ligatures";
|
|
|
|
homepage = "https://rubjo.github.io/victor-mono";
|
2021-10-30 06:20:00 +02:00
|
|
|
license = licenses.ofl;
|
2019-07-18 01:27:26 +02:00
|
|
|
maintainers = with maintainers; [ jpotier dtzWill ];
|
2019-07-13 10:00:39 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|