nixpkgs/pkgs/by-name/ko/kochi-substitute-naga10/package.nix

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

37 lines
1.2 KiB
Nix
Raw Normal View History

2023-01-25 14:45:31 +00:00
{ lib, stdenvNoCC, fetchzip }:
2023-01-25 14:45:31 +00:00
stdenvNoCC.mkDerivation rec {
pname = "kochi-substitute-naga10";
version = "20030809";
2023-01-25 14:45:31 +00:00
src = fetchzip {
url = "mirror://osdn/efont/5411/kochi-substitute-${version}.tar.bz2";
stripRoot = false;
hash = "sha256-dRJAxeVGYcNjLWqJJ+9Z2FW3BHrgyGRzlgM2x5YG3AM=";
};
2023-01-25 14:45:31 +00:00
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
2023-01-25 14:45:31 +00:00
mv */kochi-gothic-subst.ttf $out/share/fonts/truetype/kochi-gothic-subst-naga10.ttf
mv */kochi-mincho-subst.ttf $out/share/fonts/truetype/kochi-mincho-subst-naga10.ttf
2023-01-25 14:45:31 +00:00
runHook postInstall
'';
2017-08-10 19:43:49 +00:00
meta = {
2014-11-11 13:20:43 +00:00
description = "Japanese font, non-free replacement for MS Gothic and MS Mincho";
longDescription = ''
Kochi Gothic and Kochi Mincho were developed as free replacements for the
MS Gothic and MS Mincho fonts from Microsoft. This version of the fonts
includes some non-free glyphs from the naga10 font, which stipulate that
this font may not be sold commercially. See kochi-substitute for the free
Debian version.
'';
homepage = "https://osdn.net/projects/efont/";
license = lib.licenses.unfreeRedistributable;
maintainers = [ lib.maintainers.auntie ];
};
}