2022-05-12 04:20:00 +00:00
|
|
|
{ lib, fetchzip }:
|
2019-09-28 21:20:00 +00:00
|
|
|
|
|
|
|
let
|
2022-05-12 04:20:00 +00:00
|
|
|
version = "2.010";
|
|
|
|
in
|
|
|
|
fetchzip {
|
2019-09-28 21:20:00 +00:00
|
|
|
name = "work-sans-${version}";
|
|
|
|
|
2022-05-12 04:20:00 +00:00
|
|
|
url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
|
2019-09-28 21:20:00 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2022-05-12 04:20:00 +00:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
|
2019-09-28 21:20:00 +00:00
|
|
|
'';
|
|
|
|
|
2022-05-12 04:20:00 +00:00
|
|
|
sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";
|
2019-09-28 21:20:00 +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;
|
|
|
|
};
|
|
|
|
}
|