about summary refs log tree commit diff
path: root/pkgs/data/fonts/victor-mono
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2021-10-30 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2021-10-30 04:20:00 +0000
commite33e6a064d36e4e16eefcc3113abfbc1b72133bb (patch)
tree1b2e132956ffe1a5227baca5f3449f8e3a09be17 /pkgs/data/fonts/victor-mono
parentbd2411b1d7d421e6edd359dc92c705d4aa35dc98 (diff)
victor-mono: 1.4.1 -> 1.5.0
https://github.com/rubjo/victor-mono/releases/tag/v1.5.0
Diffstat (limited to 'pkgs/data/fonts/victor-mono')
-rw-r--r--pkgs/data/fonts/victor-mono/default.nix30
1 files changed, 12 insertions, 18 deletions
diff --git a/pkgs/data/fonts/victor-mono/default.nix b/pkgs/data/fonts/victor-mono/default.nix
index 940c0d76c46ac..17ad7e23e8c9e 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.
-  postFetch = ''
-    tar xvf $downloadedFile --strip-components=2 ${pname}-${version}/public/VictorMonoAll.zip
-
-    mkdir -p $out/share/fonts/{true,open}type/${pname}
+  url = "https://github.com/rubjo/victor-mono/raw/v${version}/public/VictorMonoAll.zip";
 
-    unzip -j VictorMonoAll.zip \*.ttf -d $out/share/fonts/truetype/${pname}
-    unzip -j VictorMonoAll.zip \*.otf -d $out/share/fonts/opentype/${pname}
+  postFetch = ''
+    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;
   };
 }
-