2017-08-11 05:20:54 +01:00
|
|
|
{ stdenv, 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";
|
2014-09-13 12:51:39 +01:00
|
|
|
homepage = http://wenq.org;
|
2014-02-12 19:38:21 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2; # with font embedding exceptions
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.pkmx ];
|
2014-02-12 19:38:21 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-07-29 19:55:16 +01:00
|
|
|
};
|
|
|
|
}
|