nixpkgs/pkgs/data/fonts/wqy-zenhei/default.nix

29 lines
653 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
2014-02-08 22:20:21 +01:00
name = "wqy-zenhei-${version}";
version = "0.9.45";
src = fetchurl {
2014-02-08 22:20:21 +01:00
url = "mirror://sourceforge/wqy/${name}.tar.gz";
sha256 = "1mkmxq8g2hjcglb3zajfqj20r4r88l78ymsp2xyl5yav8w3f7dz4";
};
2014-02-08 22:20:21 +01:00
dontBuild = true;
installPhase =
''
mkdir -p $out/share/fonts
2014-02-08 22:20:21 +01:00
install -m644 *.ttc $out/share/fonts/
'';
meta = {
description = "A (mainly) Chinese Unicode font";
homepage = http://wenq.org;
license = stdenv.lib.licenses.gpl2; # with font embedding exceptions
maintainers = [ stdenv.lib.maintainers.pkmx ];
platforms = stdenv.lib.platforms.all;
};
}