victor-mono: 1.4.1 -> 1.5.0

https://github.com/rubjo/victor-mono/releases/tag/v1.5.0

+12 -18
+12 -18
pkgs/data/fonts/victor-mono/default.nix
··· 1 - { lib, fetchFromGitHub }: 1 + { lib, fetchzip }: 2 2 3 3 let 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}"; 4 + version = "1.5.0"; 5 + in 6 + fetchzip { 7 + name = "victor-mono-${version}"; 12 8 13 9 # Upstream prefers we download from the website, 14 10 # but we really insist on a more versioned resource. ··· 17 13 # so we extract it from the tagged release. 18 14 # Both methods produce the same file, but this way 19 15 # 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} 16 + url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip"; 24 17 25 - unzip -j VictorMonoAll.zip \*.ttf -d $out/share/fonts/truetype/${pname} 26 - unzip -j VictorMonoAll.zip \*.otf -d $out/share/fonts/opentype/${pname} 18 + 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 27 22 ''; 28 23 29 - sha256 = "1g3jjrqd2fiw2hdifhff2fn20p5a0xfma3964f67ibdyri976zq5"; 24 + sha256 = "1x3dnkq8awn5zniywap78qwp5nxmf14bq8snzsywk70ah0jmbawi"; 30 25 31 26 meta = with lib; { 32 27 description = "Free programming font with cursive italics and ligatures"; 33 28 homepage = "https://rubjo.github.io/victor-mono"; 34 - license = with licenses; [ mit ]; 29 + license = licenses.ofl; 35 30 maintainers = with maintainers; [ jpotier dtzWill ]; 36 31 platforms = platforms.all; 37 32 }; 38 33 } 39 -