2014-06-12 06:05:16 +02:00
|
|
|
{ stdenv, fetchurl, dpkg }:
|
|
|
|
|
|
|
|
let version = "20030809";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "kochi-substitute";
|
|
|
|
inherit version;
|
2014-06-12 06:05:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-gothic_${version}-15_all.deb";
|
|
|
|
sha256 = "6e2311cd8e880a9328e4d3eef34a1c1f024fc87fba0dce177a0e1584a7360fea";
|
|
|
|
};
|
|
|
|
|
2014-06-12 06:18:05 +02:00
|
|
|
src2 = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-mincho_${version}-15_all.deb";
|
|
|
|
sha256 = "91ce6c993a3a0f77ed85db76f62ce18632b4c0cbd8f864676359a17ae5e6fa3c";
|
|
|
|
};
|
|
|
|
|
2018-01-10 01:27:23 +01:00
|
|
|
nativeBuildInputs = [ dpkg ];
|
2014-06-12 06:05:16 +02:00
|
|
|
|
|
|
|
unpackCmd = ''
|
|
|
|
dpkg-deb --fsys-tarfile $src | tar xf - ./usr/share/fonts/truetype/kochi/kochi-gothic-subst.ttf
|
2014-06-12 06:18:05 +02:00
|
|
|
dpkg-deb --fsys-tarfile $src2 | tar xf - ./usr/share/fonts/truetype/kochi/kochi-mincho-subst.ttf
|
2014-06-12 06:05:16 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp ./share/fonts/truetype/kochi/kochi-gothic-subst.ttf $out/share/fonts/truetype/
|
2014-06-12 06:18:05 +02:00
|
|
|
cp ./share/fonts/truetype/kochi/kochi-mincho-subst.ttf $out/share/fonts/truetype/
|
2014-06-12 06:05:16 +02:00
|
|
|
'';
|
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = "10hcrf51npc1w2jsz5aiw07dgw96vs4wmsz4ai9zyaswipvf8ddy";
|
|
|
|
|
2014-06-12 06:05:16 +02:00
|
|
|
meta = {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Japanese font, a free replacement for MS Gothic and MS Mincho";
|
2014-06-12 06:05:16 +02:00
|
|
|
longDescription = ''
|
2014-06-13 05:33:23 +02:00
|
|
|
Kochi Gothic and Kochi Mincho were developed as free replacements for the
|
|
|
|
MS Gothic and MS Mincho fonts from Microsoft. These are the Debian
|
|
|
|
versions of the fonts, which remove some non-free glyphs that were added
|
|
|
|
from the naga10 font.
|
2014-06-12 06:05:16 +02:00
|
|
|
'';
|
2019-06-09 06:48:03 +02:00
|
|
|
homepage = "https://osdn.net/projects/efont/";
|
2014-06-12 06:05:16 +02:00
|
|
|
license = stdenv.lib.licenses.wadalab;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.auntie ];
|
|
|
|
};
|
|
|
|
}
|