2022-05-18 14:49:53 +00:00
|
|
|
{ lib, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.010";
|
|
|
|
in
|
|
|
|
fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "work-sans-${version}";
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A grotesque sans";
|
|
|
|
homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|