···1-{ lib, fetchFromGitHub }:
23let
4- pname = "victor-mono";
5- version = "1.4.1";
6-in fetchFromGitHub rec {
7- name = "${pname}-${version}";
8-9- owner = "rubjo";
10- repo = pname;
11- rev = "v${version}";
1213 # Upstream prefers we download from the website,
14 # but we really insist on a more versioned resource.
···17 # so we extract it from the tagged release.
18 # Both methods produce the same file, but this way
19 # we can safely reason about what version it is.
20- postFetch = ''
21- tar xvf $downloadedFile --strip-components=2 ${pname}-${version}/public/VictorMonoAll.zip
22-23- mkdir -p $out/share/fonts/{true,open}type/${pname}
2425- unzip -j VictorMonoAll.zip \*.ttf -d $out/share/fonts/truetype/${pname}
26- unzip -j VictorMonoAll.zip \*.otf -d $out/share/fonts/opentype/${pname}
0027 '';
2829- sha256 = "1g3jjrqd2fiw2hdifhff2fn20p5a0xfma3964f67ibdyri976zq5";
3031 meta = with lib; {
32 description = "Free programming font with cursive italics and ligatures";
33 homepage = "https://rubjo.github.io/victor-mono";
34- license = with licenses; [ mit ];
35 maintainers = with maintainers; [ jpotier dtzWill ];
36 platforms = platforms.all;
37 };
38}
39-
···1+{ lib, fetchzip }:
23let
4+ version = "1.5.0";
5+in
6+fetchzip {
7+ name = "victor-mono-${version}";
000089 # Upstream prefers we download from the website,
10 # but we really insist on a more versioned resource.
···13 # so we extract it from the tagged release.
14 # Both methods produce the same file, but this way
15 # we can safely reason about what version it is.
16+ url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
0001718+ postFetch = ''
19+ mkdir -p $out/share/fonts/
20+ unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
21+ unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
22 '';
2324+ sha256 = "1x3dnkq8awn5zniywap78qwp5nxmf14bq8snzsywk70ah0jmbawi";
2526 meta = with lib; {
27 description = "Free programming font with cursive italics and ligatures";
28 homepage = "https://rubjo.github.io/victor-mono";
29+ license = licenses.ofl;
30 maintainers = with maintainers; [ jpotier dtzWill ];
31 platforms = platforms.all;
32 };
33}
0