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