Skip to content

Commit

Permalink
Merge pull request #172798 from marsam/update-work-sans
Browse files Browse the repository at this point in the history
work-sans: 1.6 -> 2.010
  • Loading branch information
marsam authored May 13, 2022
2 parents 62595af + d3c2a1b commit 0ba57d8
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pkgs/data/fonts/work-sans/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 0ba57d8

Please sign in to comment.