From d3c2a1b01bd1a72aa1cb08766f302a1c07d82f75 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 12 May 2022 04:20:00 +0000 Subject: [PATCH] work-sans: 1.6 -> 2.010 https://github.com/weiweihuanghuang/Work-Sans/releases/tag/v2.010 --- pkgs/data/fonts/work-sans/default.nix | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/data/fonts/work-sans/default.nix b/pkgs/data/fonts/work-sans/default.nix index 16a0e9ac021a..49722fc3e01a 100644 --- a/pkgs/data/fonts/work-sans/default.nix +++ b/pkgs/data/fonts/work-sans/default.nix @@ -1,23 +1,19 @@ -{ lib, fetchFromGitHub }: +{ lib, fetchzip }: let - version = "1.6"; -in fetchFromGitHub { + version = "2.010"; +in +fetchzip { name = "work-sans-${version}"; - owner = "weiweihuanghuang"; - repo = "Work-Sans"; - rev = "v${version}"; + url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip"; postFetch = '' - tar xf $downloadedFile --strip=1 - install -m444 -Dt $out/share/fonts/opentype/ fonts/desktop/*.otf - install -m444 -Dt $out/share/fonts/truetype/ fonts/webfonts/ttf/*.ttf - install -m444 -Dt $out/share/fonts/woff/ fonts/webfonts/woff/*.woff - install -m444 -Dt $out/share/fonts/woff2/ fonts/webfonts/woff2/*.woff2 + mkdir -p $out/share/fonts + unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype ''; - sha256 = "01kjidk6zv80rqxapcdwhd9wxzrjfc6lj4gkf6dwa4sskw5x3b8a"; + sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws="; meta = with lib; { description = "A grotesque sans";