work-sans: 1.6 -> 2.010
https://github.com/weiweihuanghuang/Work-Sans/releases/tag/v2.010
This commit is contained in:
parent
62595afea7
commit
d3c2a1b01b
1 changed files with 8 additions and 12 deletions
|
@ -1,23 +1,19 @@
|
||||||
{ lib, fetchFromGitHub }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.6";
|
version = "2.010";
|
||||||
in fetchFromGitHub {
|
in
|
||||||
|
fetchzip {
|
||||||
name = "work-sans-${version}";
|
name = "work-sans-${version}";
|
||||||
|
|
||||||
owner = "weiweihuanghuang";
|
url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
|
||||||
repo = "Work-Sans";
|
|
||||||
rev = "v${version}";
|
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
tar xf $downloadedFile --strip=1
|
mkdir -p $out/share/fonts
|
||||||
install -m444 -Dt $out/share/fonts/opentype/ fonts/desktop/*.otf
|
unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
|
||||||
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
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "01kjidk6zv80rqxapcdwhd9wxzrjfc6lj4gkf6dwa4sskw5x3b8a";
|
sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A grotesque sans";
|
description = "A grotesque sans";
|
||||||
|
|
Loading…
Reference in a new issue