···1-{ lib, fetchzip }:
23-let
04 version = "1.5.4";
5-in
6-fetchzip {
7- name = "victor-mono-${version}";
8- stripRoot = false;
910 # Upstream prefers we download from the website,
11 # but we really insist on a more versioned resource.
···14 # so we extract it from the tagged release.
15 # Both methods produce the same file, but this way
16 # we can safely reason about what version it is.
17- url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
00000001819- postFetch = ''
20 mkdir -p "$out/share/fonts/"
2122- mv $out/OTF $out/share/fonts/opentype
23- mv $out/TTF $out/share/fonts/truetype
2425- rm -r $out/{EOT,WOFF,WOFF2,LICENSE.txt}
26 '';
27-28- sha256 = "sha256-1si0d2lpuXaDcSc3giVMMMbZc/eKbHKU3wmwfYHZ8o0=";
2930 meta = with lib; {
31 description = "Free programming font with cursive italics and ligatures";
···1+{ lib, stdenvNoCC, fetchzip }:
23+stdenvNoCC.mkDerivation rec {
4+ pname = "victor-mono";
5 version = "1.5.4";
000067 # Upstream prefers we download from the website,
8 # but we really insist on a more versioned resource.
···11 # so we extract it from the tagged release.
12 # Both methods produce the same file, but this way
13 # we can safely reason about what version it is.
14+ src = fetchzip {
15+ url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
16+ stripRoot = false;
17+ hash = "sha256-E8j1bfYrM8yRtasiwgTvyE4EYx2LyAbmw3MXH1l+owk=";
18+ };
19+20+ installPhase = ''
21+ runHook preInstall
22023 mkdir -p "$out/share/fonts/"
2425+ mv OTF $out/share/fonts/opentype
26+ mv TTF $out/share/fonts/truetype
2728+ runHook postInstall
29 '';
003031 meta = with lib; {
32 description = "Free programming font with cursive italics and ligatures";