nixpkgs-suyu/pkgs/data/fonts/arphic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl, mkfontdir, mkfontscale }:
let
version = "0.2.20080216.2";
in
{
arphic-ukai = stdenvNoCC.mkDerivation rec {
pname = "arphic-ukai";
inherit version;
src = fetchurl {
url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2";
hash = "sha256-tJaNc1GfT4dH6FVI+4XSG2Zdob8bqQCnxJmXbmqK49I=";
};
nativeBuildInputs = [
mkfontscale
mkfontdir
];
installPhase = ''
runHook preInstall
2017-06-10 10:31:20 +02:00
install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc
cd $out/share/fonts
mkfontdir
mkfontscale
runHook postInstall
'';
meta = with lib; {
description = "CJK Unicode font Kai style";
homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/";
license = licenses.arphicpl;
maintainers = [ maintainers.changlinli ];
platforms = platforms.all;
};
};
arphic-uming = stdenvNoCC.mkDerivation rec {
pname = "arphic-uming";
inherit version;
src = fetchurl {
url = "mirror://ubuntu/pool/main/f/fonts-${pname}/fonts-${pname}_${version}.orig.tar.bz2";
hash = "sha256-48GeBOp6VltKz/bx5CSAhNLhB1LjBb991sdugIYNwds=";
};
nativeBuildInputs = [
mkfontscale
mkfontdir
];
installPhase = ''
runHook preInstall
2017-06-10 10:31:20 +02:00
install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc
cd $out/share/fonts
mkfontdir
mkfontscale
runHook postInstall
'';
meta = with lib; {
description = "CJK Unicode font Ming style";
homepage = "https://www.freedesktop.org/wiki/Software/CJKUnifonts/";
license = licenses.arphicpl;
maintainers = [ maintainers.changlinli ];
platforms = platforms.all;
};
};
}