2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2010-07-29 19:55:16 +01:00
|
|
|
|
2017-08-11 05:20:54 +01:00
|
|
|
let
|
2014-02-08 21:20:21 +00:00
|
|
|
version = "0.9.45";
|
2017-08-11 05:20:54 +01:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "wqy-zenhei-${version}";
|
2010-07-29 19:55:16 +01:00
|
|
|
|
2017-08-11 05:20:54 +01:00
|
|
|
url = "mirror://sourceforge/wqy/${name}.tar.gz";
|
2010-07-29 19:55:16 +01:00
|
|
|
|
2017-08-11 05:20:54 +01:00
|
|
|
postFetch = ''
|
|
|
|
tar -xzf $downloadedFile --strip-components=1
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
install -m644 *.ttc $out/share/fonts/
|
|
|
|
'';
|
2014-02-08 21:20:21 +00:00
|
|
|
|
2017-08-11 05:20:54 +01:00
|
|
|
sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";
|
2010-07-29 19:55:16 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A (mainly) Chinese Unicode font";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://wenq.org";
|
2019-05-13 02:55:32 +01:00
|
|
|
license = lib.licenses.gpl2; # with font embedding exceptions
|
|
|
|
maintainers = [ lib.maintainers.pkmx ];
|
|
|
|
platforms = lib.platforms.all;
|
2010-07-29 19:55:16 +01:00
|
|
|
};
|
|
|
|
}
|