Merge pull request #69934 from marsam/init-work-sans

work-sans: init at 1.6
This commit is contained in:
Mario Rodas 2019-09-29 07:49:51 -05:00 committed by GitHub
commit a260e4e9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib, fetchFromGitHub }:
let
version = "1.6";
in fetchFromGitHub {
name = "work-sans-${version}";
owner = "weiweihuanghuang";
repo = "Work-Sans";
rev = "v${version}";
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
'';
sha256 = "01kjidk6zv80rqxapcdwhd9wxzrjfc6lj4gkf6dwa4sskw5x3b8a";
meta = with lib; {
description = "A grotesque sans";
homepage = "https://weiweihuanghuang.github.io/Work-Sans/";
license = licenses.ofl;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}

View File

@ -17285,6 +17285,8 @@ in
wireless-regdb = callPackage ../data/misc/wireless-regdb { }; wireless-regdb = callPackage ../data/misc/wireless-regdb { };
work-sans = callPackage ../data/fonts/work-sans { };
wqy_microhei = callPackage ../data/fonts/wqy-microhei { }; wqy_microhei = callPackage ../data/fonts/wqy-microhei { };
wqy_zenhei = callPackage ../data/fonts/wqy-zenhei { }; wqy_zenhei = callPackage ../data/fonts/wqy-zenhei { };