1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/data/fonts/wqy-zenhei/default.nix
volth c9eb44eab3 data/fonts: cleanup
* make font derivations fixed-output where applicable
 * fix dead links
 * `stdenv.lib` -> `lib` where `stdenv` is not involved
 * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
2019-05-13 06:03:31 +00:00

26 lines
613 B
Nix

{ lib, fetchzip }:
let
version = "0.9.45";
in fetchzip rec {
name = "wqy-zenhei-${version}";
url = "mirror://sourceforge/wqy/${name}.tar.gz";
postFetch = ''
tar -xzf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
'';
sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";
meta = {
description = "A (mainly) Chinese Unicode font";
homepage = http://wenq.org;
license = lib.licenses.gpl2; # with font embedding exceptions
maintainers = [ lib.maintainers.pkmx ];
platforms = lib.platforms.all;
};
}