From e33e6a064d36e4e16eefcc3113abfbc1b72133bb Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 30 Oct 2021 04:20:00 +0000 Subject: [PATCH] victor-mono: 1.4.1 -> 1.5.0 https://github.com/rubjo/victor-mono/releases/tag/v1.5.0 --- pkgs/data/fonts/victor-mono/default.nix | 30 ++++++++++--------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/pkgs/data/fonts/victor-mono/default.nix b/pkgs/data/fonts/victor-mono/default.nix index 940c0d76c46a..17ad7e23e8c9 100644 --- a/pkgs/data/fonts/victor-mono/default.nix +++ b/pkgs/data/fonts/victor-mono/default.nix @@ -1,14 +1,10 @@ -{ lib, fetchFromGitHub }: +{ lib, fetchzip }: let - pname = "victor-mono"; - version = "1.4.1"; -in fetchFromGitHub rec { - name = "${pname}-${version}"; - - owner = "rubjo"; - repo = pname; - rev = "v${version}"; + version = "1.5.0"; +in +fetchzip { + name = "victor-mono-${version}"; # Upstream prefers we download from the website, # but we really insist on a more versioned resource. @@ -17,23 +13,21 @@ in fetchFromGitHub rec { # 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. + url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip"; + postFetch = '' - tar xvf $downloadedFile --strip-components=2 ${pname}-${version}/public/VictorMonoAll.zip - - mkdir -p $out/share/fonts/{true,open}type/${pname} - - unzip -j VictorMonoAll.zip \*.ttf -d $out/share/fonts/truetype/${pname} - unzip -j VictorMonoAll.zip \*.otf -d $out/share/fonts/opentype/${pname} + mkdir -p $out/share/fonts/ + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype ''; - sha256 = "1g3jjrqd2fiw2hdifhff2fn20p5a0xfma3964f67ibdyri976zq5"; + sha256 = "1x3dnkq8awn5zniywap78qwp5nxmf14bq8snzsywk70ah0jmbawi"; meta = with lib; { description = "Free programming font with cursive italics and ligatures"; homepage = "https://rubjo.github.io/victor-mono"; - license = with licenses; [ mit ]; + license = licenses.ofl; maintainers = with maintainers; [ jpotier dtzWill ]; platforms = platforms.all; }; } -