···11-{ lib, fetchzip }:
11+{ lib, stdenvNoCC, fetchzip }:
2233-let
33+stdenvNoCC.mkDerivation rec {
44+ pname = "victor-mono";
45 version = "1.5.4";
55-in
66-fetchzip {
77- name = "victor-mono-${version}";
88- stripRoot = false;
96107 # Upstream prefers we download from the website,
118 # but we really insist on a more versioned resource.
···1411 # so we extract it from the tagged release.
1512 # Both methods produce the same file, but this way
1613 # we can safely reason about what version it is.
1717- url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
1414+ src = fetchzip {
1515+ url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
1616+ stripRoot = false;
1717+ hash = "sha256-E8j1bfYrM8yRtasiwgTvyE4EYx2LyAbmw3MXH1l+owk=";
1818+ };
1919+2020+ installPhase = ''
2121+ runHook preInstall
18221919- postFetch = ''
2023 mkdir -p "$out/share/fonts/"
21242222- mv $out/OTF $out/share/fonts/opentype
2323- mv $out/TTF $out/share/fonts/truetype
2525+ mv OTF $out/share/fonts/opentype
2626+ mv TTF $out/share/fonts/truetype
24272525- rm -r $out/{EOT,WOFF,WOFF2,LICENSE.txt}
2828+ runHook postInstall
2629 '';
2727-2828- sha256 = "sha256-1si0d2lpuXaDcSc3giVMMMbZc/eKbHKU3wmwfYHZ8o0=";
29303031 meta = with lib; {
3132 description = "Free programming font with cursive italics and ligatures";