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