43 lines
862 B
Nix
43 lines
862 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenvNoCC,
|
||
|
|
fetchurl,
|
||
|
|
mkfontdir,
|
||
|
|
mkfontscale,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenvNoCC.mkDerivation rec {
|
||
|
|
pname = "arphic-uming";
|
||
|
|
version = "0.2.20080216.2";
|
||
|
|
|
||
|
|
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
|
||
|
|
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
}
|